Search Header Logo

C++ Basics

Authored by Jack Bandy

Computers

University

Used 5+ times

C++ Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

31 questions

Show all answers

1.

OPEN ENDED QUESTION

2 mins • 1 pt

What are some tools or topics you would be interested in working with for the next 4 projects? What ideas do you have for programs we could write in C++?

Evaluate responses using AI:

OFF

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is the correct statement to output "Hello World" in C++?

System.out.println("Hello World");

cout << "Hello World";

print("Hello World");

cout > "Hello World";

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the best definition of a reserved word in C++?

A user-defined variable

A keyword with a special meaning

A function name

A comment

4.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

Write a C++ statement that declares the variable firstInitial to be a character variable.

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In the context of a function, what is the role of the "void" keyword in C++?

To declare a variable

To indicate a function returns no value

To start a loop

To end a program

6.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

What is the result of the following expression in C++?

11%9

7.

FILL IN THE BLANK QUESTION

20 sec • 1 pt

What is the result of the following expression in C++?

15/4

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?

Discover more resources for Computers