C++ Basics

C++ Basics

Assessment

Flashcard

Computers

University

Practice Problem

Easy

Created by

Jack Bandy

Used 6+ times

FREE Resource

Student preview

quiz-placeholder

24 questions

Show all answers

1.

FLASHCARD QUESTION

Front

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

Back

cout << "Hello World";

2.

FLASHCARD QUESTION

Front

Reserved word in C++

Back

A keyword with a special meaning

3.

FLASHCARD QUESTION

Front

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

Back

char firstInitial;

4.

FLASHCARD QUESTION

Front

Role of "void" keyword in a C++ function?

Back

To indicate a function returns no value

5.

FLASHCARD QUESTION

Front

What is the result of the following expression in C++? 11%9

Back

2

6.

FLASHCARD QUESTION

Front

What is the result of the following expression in C++? 15/4

Back

3

7.

FLASHCARD QUESTION

Front

What is the result of the following expression in C++? 3.0/2.0

Back

1.5

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