Search Header Logo

CPP Prelim

Authored by John Oli

Computers

University

Used 9+ times

CPP Prelim
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

DRAG AND DROP QUESTION

3 mins • 5 pts

Media Image

What is the missing part of the code below to output "Hello World!".

(a)  

CIN
Cout
COUT
cout

2.

DRAG AND DROP QUESTION

3 mins • 5 pts

Media Image

Insert a new line after "Hello World", by using a special character:

(a)  

\n
/n
<<endl
new line

3.

DRAG AND DROP QUESTION

3 mins • 5 pts

Media Image

Use the correct keyword to get user input, stored in the variable num1:

(a)  

CIN<<Num1;
cin<<num1;
cin>>Num1;
cin>>num1;

4.

MULTIPLE CHOICE QUESTION

3 mins • 10 pts

Media Image

Fill in the missing parts to print the sum of two numbers (which is put in by the user):

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

3 mins • 5 pts

Media Image

Add the correct data type for the following variables

Integer, Double, Character, Boolean, String

Var, Num1, Char, Sting

Boolean, Strings, Intege

Doubles , Integers, Characters

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?