Exam 2: Data Types and Expressions

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

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

Given the following declarations,what is stored in ans as a result of the arithmetic expression? int ans = 0,v1 = 5,v2 = 8; Ans = v2 % v1++;

(Multiple Choice)
4.8/5
(83)

Which of the following is a valid identifier?

(Multiple Choice)
4.9/5
(68)

The C# category of ____________ operators appear at the top of the precedence table with the order of operations.

(Short Answer)
4.8/5
(72)

When you desk check the algorithm,you can compare the results obtained from the program with calculator results.

(True/False)
4.9/5
(73)

If aNumber is declared to be of type int with a value of 50,Console.out.WriteLine( aNumber++);displays 51.

(True/False)
4.8/5
(66)

The binary value for ten is 00001010.

(True/False)
4.8/5
(98)

Following standard conventions used by many programmers,the identifier REBATE would be defined as a(n)____.

(Multiple Choice)
4.7/5
(77)

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

(Short Answer)
5.0/5
(79)

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

(True/False)
4.9/5
(63)

Probably the most important rule for naming identifiers is ____.

(Multiple Choice)
4.9/5
(73)

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

(True/False)
4.8/5
(73)

Both static and constant are keywords in C#.

(True/False)
5.0/5
(88)

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

(Multiple Choice)
4.8/5
(83)

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

(Multiple Choice)
4.9/5
(73)

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

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

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

(Multiple Choice)
4.9/5
(73)

The value $78,888.90 is printed as output when the {0:c)format specifier is used in the following Write statement: Console.Write("{0:c}",78888.894);

(True/False)
4.9/5
(77)

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

(True/False)
5.0/5
(66)
Showing 21 - 40 of 75
close modal

Filters

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