Introduction to C++

Introduction to C++

University

20 Qs

quiz-placeholder

Similar activities

Engineering Design Process

Engineering Design Process

10th Grade - University

20 Qs

C++ OOPs Concepts & Inheritance Quiz

C++ OOPs Concepts & Inheritance Quiz

University

20 Qs

ETS Pemrograman Berorientasi Obyek

ETS Pemrograman Berorientasi Obyek

University

15 Qs

Data Visualization CT-5

Data Visualization CT-5

University

20 Qs

Cutting tools and cutting fluids

Cutting tools and cutting fluids

12th Grade - University

19 Qs

Conceptos de Arduino y sensores

Conceptos de Arduino y sensores

University

20 Qs

PIM 1-2

PIM 1-2

University

18 Qs

Idioms Unveiled: Understanding Everyday Expressions

Idioms Unveiled: Understanding Everyday Expressions

4th Grade - University

15 Qs

Introduction to C++

Introduction to C++

Assessment

Quiz

Engineering

University

Medium

Created by

adrianna agustin

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct file extension for a C++ source file?

.cpp

.exe

.java

.txt

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the #include directive?

To allow input and output operations

To define a new programming language

To import all available functions in C++

To format text output

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the int main() function do?

Starts the execution of a C++ program

Declares global variables

Runs system-level commands

Automatically prints output

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid C++ variable name?

myVariable

2cool4school

_underscore_variable

camelCaseExample

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will cout << "Hello" << " World!" << endl; output?

A) Hello World!

B) HelloWorld!

C) "Hello" "World!"

D) Compilation error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a constant variable in C++?

const double PI = 3.14159;

let PI = 3.14159;

define PI 3.14159;

permanent double PI = 3.14159;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid C++ data type?

int

double

string

decimal

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?