Exam 2: Introduction to C Programming; Inputoutput and Operators

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

The std::endl stream manipulator________.

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

C

The ________ object enables a program to read data from the user.

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

B

Which of the following is a variable declaration statement?

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

A

Each of the following is a relational or equality operator except:

(Multiple Choice)
5.0/5
(39)

End-of-line comments that should be ignored by the compiler are denoted using:

(Multiple Choice)
5.0/5
(32)

Which of the following is a compilation error?

(Multiple Choice)
4.8/5
(32)

Which of the following statements does not overwrite a preexisting value stored in a memory location?

(Multiple Choice)
4.7/5
(35)

The assignment operator ________ assigns the value of the expression on its right to the variable on its left.

(Multiple Choice)
5.0/5
(36)

In what order would the following operators be evaluated -, *, /, +, % Assume that if two operations have the same precedence, the one listed first will be evaluated first.

(Multiple Choice)
4.9/5
(41)

Which of the following is not an arithmetic operator?

(Multiple Choice)
4.9/5
(46)

Which of the following does not cause a syntax error to be reported by the C++ compiler?

(Multiple Choice)
4.9/5
(35)

Which of the following uses C++11's list initialization to initialize count to 0?

(Multiple Choice)
4.9/5
(25)

Which of the following is the escape character?

(Multiple Choice)
4.9/5
(36)

The escape sequence for a newline is:

(Multiple Choice)
4.9/5
(31)

Which of the following is not a valid C++ identifier?

(Multiple Choice)
4.8/5
(42)

Which is the output of the following statements? std::cout << "Hello "; Std::cout << "World";

(Multiple Choice)
4.9/5
(29)

Which of the following is not a syntax error?

(Multiple Choice)
4.8/5
(43)

Which of the following statements would display the phrase C++ is fun?

(Multiple Choice)
4.8/5
(42)

Which of the following statements could potentially change the value of number2?

(Multiple Choice)
4.7/5
(34)

What will be the output after the following C++ statements have been executed? int a{4}; Int b{12}; Int c{37}; Int d{51}; If (a < b) { Cout << "a < b" << endl; } If (a > b) { Cout << "a > b" << endl; } If (d <= c) { Cout << "d <= c" << endl; } If (c != d) { Cout << "c != d" << endl; }

(Multiple Choice)
4.9/5
(34)
Showing 1 - 20 of 22
close modal

Filters

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