Search Header Logo

Cout

Authored by Rabih Rabih

Computers

University

Used 1+ times

Cout
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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;


}

%

==

+

&&

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers