C++ Basics

C++ Basics

Assessment

Flashcard

Computers

University

Hard

Created by

Jack Bandy

Used 1+ 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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?