Exam 2: C++ Basics

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

In the following code fragment,x has the value of 3. int x = 3;

(True/False)
4.9/5
(37)

Loops are used when we need our program to make a choice between two or more things.

(True/False)
4.8/5
(48)

A loop that always executes the loop body at least once is known as a _____________ loop.

(Short Answer)
4.9/5
(38)

Is << used for input or output? ____________

(Short Answer)
4.8/5
(44)

The stream that is used for input from the keyboard is called ___________.

(Short Answer)
4.9/5
(34)

What is the value of x after the following statements? Int x; X = x + 30;

(Multiple Choice)
4.8/5
(47)

It is legal to declare more than one variable in a single statement.

(True/False)
4.7/5
(37)

int myValue; is called a _______________________.

(Short Answer)
4.8/5
(40)

What is the output of the following code? Float value; Value = 33.5; Cout << value << endl;

(Multiple Choice)
4.8/5
(37)

What is the value of x after the following statements? Int x; X = 15 %4;

(Multiple Choice)
4.8/5
(35)

What is the value of x after the following statement? Float x; X = 3.0 / 4.0 + 3 + 2 )/ 5

(Multiple Choice)
4.8/5
(30)

What is the opposite of x < 20 && x > 12)? _______________________

(Short Answer)
4.8/5
(35)

if-else statements that are inside other if-else statements are said to be _______________.

(Short Answer)
4.8/5
(31)

>> is known as the stream ____________ operator.

(Short Answer)
4.8/5
(37)
Showing 41 - 54 of 54
close modal

Filters

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