Search Header Logo

C++ misc-1

Authored by Mustafa Buzun

Computers

University

Used 14+ times

C++ misc-1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Creating a new variable without value

declaration
naming
instantiation
assigning

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the function that all C/C++ programs must contain?

start()

mail()

main()

func()

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a correct comment?

*/ Comments */

** Comment **

/* Comment */

{ Comment }

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which escape sequence moves the cursor to the next line?

\t
\n
\r
\s

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is NOT a logical operator in C/C++ language?

&

&&

||

!

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the output ?

int main(){

int a=32;

do{

cout << a << " ";

a++;

if( a > 35 )

break;

}

while(1);

return 0;

}

No Output

32 33 34

32 33 34 35

Compiler error

7.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Choose all correct statements.

a++ is POST INCREMENT Operator

a-- is POST DECREMENT Operator

--a is PRE DECREMENT Operator

++a is PRE INCREMENT Operator

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