Exam 2: Data Types and Expressions

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

A machine that has a 64-bit processor can process 64 characters at one time.

(True/False)
4.8/5
(26)

One convention used for naming identifiers is called Pascal case.  This convention requires that ____.

(Multiple Choice)
4.9/5
(36)

float totalAmount = 23.57; The float compile-time initialization above will produce an error because it is missing the type specifier (f or F).

(True/False)
4.9/5
(33)

Which of the following formats the first argument to display an amount with two digits to the right of the decimal?

(Multiple Choice)
5.0/5
(34)

The binary value for ten is 00001010.

(True/False)
4.8/5
(37)

Which of the following integral type can NOT be used to store negative values?

(Multiple Choice)
4.9/5
(34)

A variable of type bool can store ____.

(Multiple Choice)
4.8/5
(45)

In order to format the first argument in the WriteLine method so that it prints the value 5343.67 as $5,343.67 with a comma and a dollar symbol, you would insert the following format string as the argument to the WriteLine( ) ____.

(Multiple Choice)
4.9/5
(35)

The bool data type can take on values of true/false or on/off.

(True/False)
4.9/5
(37)

The result of the following expression is ____. Double ans, v1 = 45.7, v2 = 10.5; Int v3 = 5; Ans = (int) v1 + v2 / (double) v3;

(Multiple Choice)
4.9/5
(40)

The result of "123" + "321" is "123321".

(True/False)
4.9/5
(47)

Given the following declarations, what is stored in ans as a result of the arithmetic expression? Given the following declarations, what is stored in ans as a result of the arithmetic expression?

(Multiple Choice)
4.8/5
(42)

The result of 25 % 4 is 6.25.

(True/False)
4.9/5
(35)

Hexadecimal uses the symbols 1, 2, 3, 4, 5, 6, 7 8, 9, A, B, C, D, E, F ,G.

(True/False)
4.9/5
(45)

The Hexadecimal numbering system uses all of the following symbols EXCEPT _____.

(Multiple Choice)
4.9/5
(42)

An appropriate identifier used to store the total transaction amount is total$Amount.

(True/False)
4.7/5
(33)

moreData = true; An error will be produced when moreData is assigned the boolean variable shown above because the keyword true should be enclosed in double quotation marks.

(True/False)
4.9/5
(41)

Which of the following would be the most appropriate identifier for a memory location that will store the amount of rainfall for a given period of time?

(Multiple Choice)
4.9/5
(29)

The symbols +=, -=, and *=, compound operators in C#, are used to provide a shortcut way to write assignment statements using the result as part of the computation.

(True/False)
4.8/5
(35)

Classes are actually implemented through types in C#.

(True/False)
4.9/5
(32)
Showing 21 - 40 of 75
close modal

Filters

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