Search Header Logo

Quiz 1

Authored by MA CPC

Computers

University

Used 2+ times

Quiz 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a = 10, b = 20;

cout << "Number is a + b" << '\n';


Number is a + b

“Number is a + b”


Number is 30


Number is a + b = 30


2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int x = 3.3 , y = 7;

cout << x + y << '\n';


x + y


10

10.3

x + 7

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

float x = 3.000;

String s = "3.000";

cout << x <<" "<< s << '\n';


3.000  3.000

3  3.000

syntax error

3.000 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

string num="12.0",num1="34.5"; 

cout<< num + num1 <<'\n';

46.5


46

syntax error

12.034.5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

cout<<"X\nY";

 X\nY


XY

X   

Y

X

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

int a=2 , b=6 , c=1 ;

a += 2;

b += 1;

c += 4;

cout<<a<<" "<<b<<" "<<c<<'\n';

2 6 1


 7 5 4


5 7 4


4 7 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

char c = 'a'  ;

cout<< c++ <<'\n';

cout<< ++c <<'\n';


b

 c


a

b

a

c

c

a

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?