Cout

Cout

University

5 Qs

quiz-placeholder

Similar activities

Quiz 1

Quiz 1

University

5 Qs

Vòng lặp for

Vòng lặp for

7th Grade - University

10 Qs

C++ Chapter 5

C++ Chapter 5

University

6 Qs

Java Static

Java Static

University

10 Qs

java operators

java operators

University

10 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

Programming practices - C programming

Programming practices - C programming

University

9 Qs

Java Control Flow and Collections

Java Control Flow and Collections

University

10 Qs

Cout

Cout

Assessment

Quiz

Computers

University

Hard

Created by

Rabih Rabih

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Fill in the blank to get 3 outputted from this code:


int main() {


cout<< 15 % _____ <<endl;


}

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int main(){

int x=106;

if( x>99 && x<=105 ){

cout << "Congrats, you got an A+";

} else if( x<99 && x>=92 ){

cout << "You got an A";

} else if( x<92 && x>=90 ){

cout << "You got an A-";

} else {

cout << "Check in with me.";

}

return 0;

}

Congrats, you got an A+

check in With ME.

You got an A-

Check in with me.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False. this code prints all numbers from 100 to 0


int numbers = 0;

while(numbers <=100){


cout<<numbers<<" ";


numbers++;

}

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output?

int x=30;

if( x<50 ){

cout << "Big Number.";}

else if( x<=30 ){

cout << "It's a small big number. "; }

else if( x<15 ){

cout << "It could be a big number."; }

else {

cout << "What kind of number is it?"; }

Big Number.

It's a small big number

It's a small big number. It could be a big number.

What kind of number?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fill in the blank to get 3 outputted from this code:


int main() {


cout<< 19 ____ 4 <<endl;


}

%

==

+

&&