Chapter 6 Review Questions Flashcards
Which of the following numbers is written in hexadecimal format?
A. 100101
B. 3268
C. 18AF
D. 100101.11
18AF
Which of the following terms describe concepts related to breaking code into smaller, repeatable sections? (Choose two.)
A. Functions B. Variables C. Containers D. Methods E. Objects
Functions
Methods
Which of the following are examples of object-oriented programming languages? (Choose two.)
A. Java
B. XML
C. Python
D. C
E. SQL
Java
Python
Which of the following statements is true regarding arrays and vectors?
A. Arrays contain one data type and are dynamic in length. Vectors can have multiple data types and are fixed in length.
B. Arrays can have multiple data types and are fixed in length. Vectors have one data type and are dynamic in length.
C. Arrays can have multiple data types and are dynamic in length. Vectors have one data type and are fixed in length.
D. Arrays contain one data type and are fixed in length. Vectors can have multiple data types and are dynamic in length.
Arrays contain one data type and are fixed in length. Vectors can have multiple data types and are dynamic in length.
A developer needs to use a code designation for non-English letters. Which notational system does the developer need to use?
A. ASCII
B. Unicode
C. International
D. Strings
Unicode
Which of the following are examples of interpreted languages? (Choose two.)
A. Compiled
B. Query
C. Scripted
D. Markup
Scripted
Markup
What type of high-level programming language is translated into machine code once and then executed many times?
A. Compiled
B. Scripted
C. Scripting
D. Markup
Compiled
A programmer wants to write code that directly accesses the computer’s hardware. Which is the best type of language for the programmer to use?
A. Complied
B. Query
C. Interpreted
D. Assembly
Assembly
Interpret the following logic. For data input on someone who is 20 years old, which category will they fall into?
if age < 13, then category “Child”
else if age < 20, then category “Teen”
else if age < 65, then category “Adult”
else category “Senior”
A. Child
B. Teen
C. Adult
D. Senior
Adult
A programmer is writing a program that needs to accept an input of someone’s name. What type of variable should the programmer create?
A. Char
B. String
C. Float
D. Unicode
String
Looping logic makes use of which of the following statements?
A. while
B. when
C. loop
D. if
while
In object-oriented programming, which of the following are integral parts of objects? (Choose two.)
A. Arrays
B. Properties
C. Attributes
D. Variables
Properties
Attributes
A program shows the number 11010.11. Which data type is this?
A. Binary
B. Boolean
C. Integer
D. Float
Float
You have created an array that can hold 15 items, all of the integer data type. You want to add a 16th integer. Which of the following is the best approach to doing this?
A. Add it to the existing array.
B. Create a separate variable for the 16th integer.
C. Convert the integers to floats and add the 16th integer.
D. Create a vector and replace the array with it.
Create a vector and replace the array with it.
What type of programming language is designed to retrieve data from a database?
A. Query
B. Assembly
C. Interpreted
D. Compiled
Query