Search Header Logo

C++ Unit 1 Day 3 Warm-Up

Authored by Richard Ghiorse

Computers

9th - 12th Grade

Used 11+ times

C++ Unit 1 Day 3 Warm-Up
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.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Every C++ program will have a function that is called ____.

start

begin

main

int

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which line of code is the correct way to display the message C++ is Fun! to the console screen?

cout << C++ is Fun!\n;

cout << "C++ is Fun!\n"

cout << "C++ is Fun!\n";

cout >> "C++ is Fun!\n";

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which include directive is necessary to use input and output commands in a C++ program?

#include<iostream>

#include<inputoutput>

#input<iolibrary>

#include<cout>

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the accepted convention for the last statement within the C++ main function?

return 0;

end;

return;

return 100;

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Assuming they are part of a complete and correct program, what is the output produced by the two lines of code above?

Hello! Are you reading carefully?

Hello!

Are you reading carefully?

Hello!Are you reading carefully?

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?