Practice Questions for Objective 1.2
The values 47.67, 8.21, and .7352 are examples of which of the following?
Which of the following is true about a float?
A float is a 64-bit, single-precision data type.
It has at least seven digits.
It has at least one decimal point.
It cannot be expressed using powers of two.
When multiplying a number that is greater than zero (0) by a negative exponent, which of the following is correct about the result?
The result is a negative number.
The number of decimals equals the number in the exponent.
The result is a positive number.
The digits in the original value are never present in the answer.
You are creating a Boolean search that is looking for information that matches both of your search terms. Which of the following do you use between the terms?
Which of the following equations is correct?
IF x=4 OR y=4, then x<>4
IF x=0 AND y<0, then x>y
IF a≠b OR b≠c, then a=c
IF NOT a=b, then b=c
Which of the following is true about the char data type?
It can only be used for calculation.
It can represent a variable.
It cannot be used for calculation.
It can occupy more than one byte.
You are attempting to enter the phrase “wide world of sports” into a data entry field that can only accept 12 characters. Which of the following is what you will see when you enter this text?
wide world o
ld of sports
de world of
Which of the following is an int?
Which of the following orders would you use at the Boolean Hamburger stand if you want to get a burger with pickle and ketchup but no mustard or onions?
Burger AND pickle AND ketchup OR mustard OR onions
Burger AND pickle NOT ketchup OR mustard OR onions
Burger AND mustard OR onions NOT ketchup OR pickle
Burger AND ketchup AND pickle NOT mustard NOT onions
You are specifying a data entry system that needs to have enough room for a user to enter a phone number, including area code. The data entry app will automatically put in the parentheses and dashes as needed. Which of the following specifications will allow correct telephone number data entry?
Ten alphanumeric characters
Fourteen numeric characters
Eleven numeric characters
Twelve alphanumeric characters
Which data type refers to a single character or a single-character variable?
Which type of logic is used to determine if a circuit is charged or on (1) or not charged or off (0)?
Which of the following can be expressed using powers of ten or powers of two?
If a string has a length of 11 characters and you attempt to enter more than 11 characters, the last characters will be left off. What is this called?
What are numbers with floating-point decimals that contain more than seven digits and up to 15 digits total known as?
64-bit single precision
Double or double-precision