Search Header Logo

C++ Quiz 2

Authored by kushboo jain

others

Used 1+ times

C++ Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

OPEN ENDED QUESTION

30 sec • Ungraded

Name

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is a keyword?

Size
Key
Jump
Switch

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ is the smallest individual unit in a program.

Variable
Control
Character
Token

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ is a sequence of characters surrounded by double quotes.

Constant
Numeric
Character
String literal

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cin uses which operator?

>>
<<
==
!!

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How to print the helloworld?

cout<<”helloworld”<
print(“helloworld”)
printf(“helloworld”)
cin>>”helloworld”;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the program? #include using namespace std; int main() { string name; cout << "Enter the name: "; cin >> name; cout << "Entered name is: " << name; return 0; }

"Enter the name: Geetha "Entered name is: Geetha
"Enter the name: Geetha” "Entered name is: Geetha”
Enter the name: Geetha Entered name is: Geetha
"Enter the name Geetha "Entered name is Geetha

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?