Exam 2: Data Types and Expressions

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

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

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

(True/False)
4.8/5
(79)

Every time you declare a variable in the C# language,you are actually ____________ a class.

(Short Answer)
4.9/5
(79)

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

(Multiple Choice)
4.7/5
(68)

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

The ____________ is sometimes referred to as the remainder operator.

(Short Answer)
4.9/5
(88)

The decimal equivalent of 00011111 is ____.

(Multiple Choice)
4.9/5
(81)

What is stored in ans as a result of the arithmetic expression,given the following declarations? int ans = 5,v1 = 2,v2 = 10,v3 = 18; Ans += v1 + 10 * (v2-- / 5)+ v3 / v2;

(Multiple Choice)
4.9/5
(84)

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

(True/False)
4.8/5
(82)

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)
4.9/5
(80)

The decimal equivalent for 3.42e-5 in scientific notation is .00342.

(True/False)
4.7/5
(62)

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

(Multiple Choice)
4.7/5
(87)

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

(Multiple Choice)
4.9/5
(85)

A variable of type bool can store ____.

(Multiple Choice)
4.7/5
(78)

One of the rules for creating a(n)____________ is to use a combination of alphabetic characters,numeric digits and the underscore character.

(Short Answer)
4.9/5
(81)

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

(Short Answer)
4.7/5
(84)

____________ are predefined reserved identifiers that have special meanings to the compiler.

(Short Answer)
4.8/5
(76)

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

(True/False)
4.8/5
(78)

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

(True/False)
4.7/5
(75)

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

(Short Answer)
4.8/5
(78)
Showing 41 - 60 of 75
close modal

Filters

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