Exam 2: Data Types and Expressions

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Probably the most important rule for naming identifiers is ____.

(Multiple Choice)
4.8/5
(33)

The base-2 number system is also called the binary number system.

(True/False)
4.8/5
(36)

What would be stored in answer after the following arithmetic expression involving only integers, if the sign of the dividend is negative? Int answer = -19 % -4;

(Multiple Choice)
5.0/5
(46)

The assignment operators (=, +=, -=, *=, and /=) represent operations that appear at the top of the hierarchy in the order of operations.

(True/False)
4.8/5
(35)

The value stored in answer after the following expression is evaluated is Int v1 = 10, v2 = 5, ans =3; Ans += --v1 * v2++;

(Multiple Choice)
4.9/5
(38)

A megabyte is approximately a(n) ____________ bytes.

(Short Answer)
4.9/5
(39)

The ____________ is sometimes referred to as the remainder operator.

(Short Answer)
4.8/5
(49)

Which of the following expressions would be evaluated first? Ans += v1 + v2 * v3 % 2;

(Multiple Choice)
4.8/5
(43)

When you think about a machine that has 60 gigabytes of hard disk space, you can store 60 million characters.

(True/False)
4.7/5
(27)

Which statement subtracts 100 from the original value of an answer?

(Multiple Choice)
4.9/5
(28)

A(n) ____________ represents an area in the computer memory where a value of a particular data type can be stored. When you declare a(n) ____________, you allocate memory for that data item in your program.

(Short Answer)
4.7/5
(38)

____________ is the universal character-encoding schema that provides a unique number for every character in many different languages.

(Short Answer)
4.8/5
(36)

In order to do a compile-time initialization of a decimal type, it is necessary to add a d or D onto the end of the value.

(True/False)
4.7/5
(32)

The number 3.45 is an example of a(n) ____ type.

(Multiple Choice)
4.7/5
(35)

Constants are normally named using all lowercase characters, separating second and subsequent words with the underscore character.

(True/False)
4.9/5
(26)
Showing 61 - 75 of 75
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)