Chapt 3 Flashcards
(34 cards)
Char
Char is a data type that refers to a single character or a single-character variable.
____ is a data type that refers to a single character or a single-character variable.
Char
A char is equal to ? bytes
1
What data type is equivalent to one byte
Char
A ____ is a series of characters that is interpreted literally by a script
String
Definition of a string
A string is a series of characters that is interpreted literally by a script
Truncation definition
If a string has a length of 11 characters, but you attempt to enter more than 11 characters, the last characters will be left off. This is called truncation
An ________ is a positive or negative whole number , no decimal points or fractions
An integer (also known as int) is a positive or negative whole number , no decimal points or fractions
Int definition:
An integer (also known as int) is a positive or negative whole number , no decimal points or fractions
________ is a number that contains up to seven digits and has at least one decimal place
A float (also known as floating-point number) is a number that contains up to seven digits and has at least one decimal place
Float definition:
A float (also known as floating-point number) is a number that contains up to seven digits and has at least one decimal place
A float has a value of _____ bits
A float is a single-precision, floating-point, 32-bit value.
_______ is a single-precision, floating-point, 32-bit value.
A float is a single-precision, floating-point, 32-bit value.
Double definition:
Numbers with floating-point decimals that contain more than seven digits, up to 15 digits total, are known as doubles, or double-precision floating-point numbers. A double is a 64-bit double-precision data type.
A double has a value of _____ bits
Numbers with floating-point decimals that contain more than seven digits, up to 15 digits total, are known as doubles, or double-precision floating-point numbers. A double is a 64-bit double-precision data type.
A double can contain how many digits?
15
Boolean definition:
Boolean values are used in Boolean logic, which evaluates whether a given condition is true (1) or false (0). These values are binary. In computers and other electronic devices, Boolean logic is used to determine if a circuit is charged or on (1) or not charged or off (0). Boolean logic can be used for searches. Boolean logic includes the following comparisons: AND, OR, NOT, and XOR, among others
XOR and it’s truth table
Exclusive OR, If either value 1 or value 2 exists in a statement, the statement is true. If both exist, or if neither exists, the statement is FALSE.
OR - AND
A. B. XOR
0. 0. 0
1. 0. 1
0. 1. 1
1. 1. 0
The values 47.67, 8.21, and .7352 are examples of what data type
Floats
A float can contain how many digits
7
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.
It has at least one decimal point
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.
The result is a positive number.
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?
AND
LIKE
OR
NOT
And
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
IF x=0 AND y<0, then x>y