Exam 2: Data Types and Expressions

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

The number 11111111 in binary is equivalent to the number 255 in decimal.

Free
(True/False)
4.7/5
(38)
Correct Answer:
Verified

True

The value 3.42e-4 is equivalent to _____.

Free
(Multiple Choice)
4.7/5
(32)
Correct Answer:
Verified

B

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, given the following declarations?

Free
(Multiple Choice)
4.7/5
(41)
Correct Answer:
Verified

C

Both static and constant are keywords in C#.

(True/False)
4.8/5
(39)

When you add the keyword ____________ to a declaration, it becomes a constant.

(Short Answer)
4.7/5
(32)

The decimal value type is appropriate for storing monetary data items because it provides for greater precision.

(True/False)
4.7/5
(32)

Which of the following is a valid identifier?

(Multiple Choice)
4.9/5
(39)

Classes, methods, namespaces, and properties follow the Pascal case naming convention, which indicates that the first letter in the identifier is in lowercase and the first letter of each subsequent concatenated word is capitalized.

(True/False)
4.9/5
(38)

Which of the following is a valid compile-time initialization for amountDue, a floating point variable of the double type, that will initially be set to zero?

(Multiple Choice)
4.8/5
(40)

A valid string literal representing the last month of the year is ____.

(Multiple Choice)
4.8/5
(34)

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

In order to place a value in memory that cannot be changed, you add the keyword ____________ to the declaration.

(Short Answer)
4.9/5
(45)

The ____________ data type is a whole number, between a certain range of values, and contains no decimal point.

(Short Answer)
5.0/5
(40)

____________ makes a variable temporarily behave as if it is a different type.

(Short Answer)
4.8/5
(37)

Base 16, also called the octal numbering system, uses powers of sixteen.

(True/False)
4.8/5
(30)

C# allows you to mix numeric integral types and floating-point types in an expression.

(True/False)
4.8/5
(29)

Unicode includes representation of 28 or 256 unique characters.

(True/False)
4.9/5
(39)

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

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

(Short Answer)
4.9/5
(39)

If you expect to receive an "A" in this course, which of the following declarations would be most appropriate for storing the grade?

(Multiple Choice)
4.9/5
(44)
Showing 1 - 20 of 75
close modal

Filters

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