C++ misc-1

C++ misc-1

University

15 Qs

quiz-placeholder

Similar activities

Quiz 8: Arrays&Vector

Quiz 8: Arrays&Vector

University

10 Qs

Quiz 2 - CS110

Quiz 2 - CS110

University

15 Qs

oop with c++

oop with c++

University

20 Qs

UAS Struktur Data 2022

UAS Struktur Data 2022

University

20 Qs

OOPS-1

OOPS-1

University

20 Qs

If else

If else

University

15 Qs

C++ Quiz

C++ Quiz

University

20 Qs

Mengenal Algoritma dan Pemrograman C++

Mengenal Algoritma dan Pemrograman C++

10th Grade - University

15 Qs

C++ misc-1

C++ misc-1

Assessment

Quiz

Computers

University

Hard

Created by

Mustafa Buzun

Used 14+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?