Exam 2: Basic Elements of C++

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

Suppose a = 5.After the execution of the statement ++a; the value of a is 6.

Free
(True/False)
4.9/5
(32)
Correct Answer:
Verified

True

____ is a valid int value.

Free
(Multiple Choice)
4.8/5
(38)
Correct Answer:
Verified

B

The declaration int a,b,c; is equivalent to which of the following?

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

B

A data type is called ____________________ if the variable or named constant of that type can store only one value at a time.

(Short Answer)
4.9/5
(30)

A comma is also called a statement terminator.

(True/False)
4.8/5
(35)

The value of the expression 17 % 7 is ____.

(Multiple Choice)
4.8/5
(29)

A(n)____________________ is a collection of statements,and when it is activated,or executed,it accomplishes something.

(Short Answer)
4.9/5
(31)

A(n)____________________ is a sequence of zero or more characters.

(Short Answer)
4.8/5
(39)

The length of the string "computer science" is ____.

(Multiple Choice)
4.8/5
(40)

The ____ rules of a programming language tell you which statements are legal,or accepted by the programming language.

(Multiple Choice)
4.9/5
(36)

In C++,you can use a(n)____________________ to instruct a program to mark those memory locations in which data is fixed throughout program execution.

(Short Answer)
4.8/5
(37)

Suppose that alpha and beta are int variables.The statement alpha = ++beta; is equivalent to the statement(s)____.

(Multiple Choice)
4.8/5
(43)

When a value of one data type is automatically changed to another data type,a(n)____________________ type coercion is said to have occurred.

(Short Answer)
4.8/5
(32)

An example of a floating point data type is ____.

(Multiple Choice)
4.7/5
(32)

Suppose that alpha and beta are int variables.The statement alpha = beta--; is equivalent to the statement(s)____.

(Multiple Choice)
4.8/5
(44)

The value of the expression 33/10,assuming both values are integral data types,is ____.

(Multiple Choice)
5.0/5
(38)

The maximum number of significant digits in values of the double type is 15.

(True/False)
4.7/5
(35)

The maximum number of significant digits in float values is up to 6 or 7.

(True/False)
4.9/5
(37)

The expression static_cast<int>(9.9)evaluates to ____.

(Multiple Choice)
4.8/5
(29)

____________________ functions are those that have already been written and are provided as part of the system.

(Short Answer)
4.8/5
(40)
Showing 1 - 20 of 50
close modal

Filters

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