Chapt 3 Flashcards

1
Q

Char

A

Char is a data type that refers to a single character or a single-character variable.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

____ is a data type that refers to a single character or a single-character variable.

A

Char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A char is equal to ? bytes

A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What data type is equivalent to one byte

A

Char

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A ____ is a series of characters that is interpreted literally by a script

A

String

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Definition of a string

A

A string is a series of characters that is interpreted literally by a script

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Truncation definition

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An ________ is a positive or negative whole number , no decimal points or fractions

A

An integer (also known as int) is a positive or negative whole number , no decimal points or fractions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Int definition:

A

An integer (also known as int) is a positive or negative whole number , no decimal points or fractions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

________ is a number that contains up to seven digits and has at least one decimal place

A

A float (also known as floating-point number) is a number that contains up to seven digits and has at least one decimal place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Float definition:

A

A float (also known as floating-point number) is a number that contains up to seven digits and has at least one decimal place

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A float has a value of _____ bits

A

A float is a single-precision, floating-point, 32-bit value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

_______ is a single-precision, floating-point, 32-bit value.

A

A float is a single-precision, floating-point, 32-bit value.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Double definition:

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

A double has a value of _____ bits

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

A double can contain how many digits?

A

15

17
Q

Boolean definition:

A

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

18
Q

XOR and it’s truth table

A

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

19
Q

The values 47.67, 8.21, and .7352 are examples of what data type

A

Floats

20
Q

A float can contain how many digits

A

7

21
Q

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.

A

It has at least one decimal point

22
Q

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.

A

The result is a positive number.

23
Q

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

A

And

24
Q

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

A

IF x=0 AND y<0, then x>y

25
Q

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.

A

It can represent a variable

26
Q

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
wide sports
de world of

A

wide world o

27
Q

Which of the following is an int?

Lincoln
3.14159
84
4/3

A

84

28
Q

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

A

Burger AND ketchup AND pickle NOT mustard NOT onions

29
Q

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

A

Eleven numeric characters

30
Q

Which data type refers to a single character or a single-character variable?

Strings
Numbers
Char
Boolean

A

Char

31
Q

Which type of logic is used to determine if a circuit is charged or on (1) or not charged or off (0)?

Integers
Strings
Floats
Boolean

A

Boolean

32
Q

Which of the following can be expressed using powers of ten or powers of two?

Boolean, Floats, Strings, Char

A

Floats

33
Q

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?

Truncation
Boolean logic
Char overflow
Floating-point

A

Truncation

34
Q

What are numbers with floating-point decimals that contain more than seven digits and up to 15 digits total known as?

Logic gate
64-bit single precision
Double or double-precision
Boolean algebra

A

Double or double-precision