Search Header Logo

Quiz-1-Set-1-OOPs-CPP

Authored by Riya Samanta

Information Technology (IT)

University

Used 3+ times

Quiz-1-Set-1-OOPs-CPP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does "C++" represent in the name of the language?

Class++
C version 2
Increment operator (++), symbolizing evolution
C with pointers

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which operator is used with cout for output?

&&
>>
<<
->

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The keyword endl in C++ is used to:

End the program
Exit a loop
Close the file
Insert newline and flush buffer

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a valid data type in C++?

signed char
long double
short int
unsigned float

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the use of setw() in C++?

Swap two variables
Write to file
Set environment variable
Set width for output formatting

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the keyword used for decision making in C++?

All of the above
switch
if
else

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which is the correct way to declare an array in C++?

int array(5);
int array[5];
array int[5];
int[5] array;

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?