Exam 2: Data Types and Expressions

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

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

(True/False)
4.8/5
(73)

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

(Multiple Choice)
4.9/5
(72)

The special character that can be used with an identifier is ____.

(Multiple Choice)
4.8/5
(75)

For a mixed expression equation involving an integer and a double,the result is a(n)____.

(Multiple Choice)
4.7/5
(74)

Another way to write the following expression is ____. ans *= v1 - 1;

(Multiple Choice)
4.8/5
(70)

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.8/5
(93)

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.8/5
(83)

A megabyte is approximately a(n)____________ bytes.

(Short Answer)
4.9/5
(76)

Placing the two plus symbols (++)before an identifier causes one to be added to the memory location referenced by the variable prior to any other statement's execution.

(True/False)
4.7/5
(100)

The @ symbol in the following string,@ "C :\MyProjects",is called a(n)____________ character.

(Short Answer)
5.0/5
(76)

The ____________ data type was added to the language to eliminate the problems of loss of precision in mathematical operations that occurred in previous languages.

(Short Answer)
4.9/5
(85)

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

(True/False)
4.7/5
(91)

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
(77)

Unicode includes representation of 2? or 256 unique characters.

(True/False)
4.8/5
(87)

The value true could be stored in a variable of ____ type.

(Multiple Choice)
4.9/5
(67)
Showing 61 - 75 of 75
close modal

Filters

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