Topic 1 C++ Programming

Topic 1 C++ Programming

12th Grade

12 Qs

quiz-placeholder

Similar activities

TRẮC NGHIỆM TIN 12 KỲ II

TRẮC NGHIỆM TIN 12 KỲ II

10th - 12th Grade

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

User Interface Design - Topic 1

User Interface Design - Topic 1

12th Grade

15 Qs

Đề ôn tập cuối HKI lớp 5

Đề ôn tập cuối HKI lớp 5

6th Grade - University

17 Qs

3rd week g9 summative

3rd week g9 summative

7th - 12th Grade

15 Qs

Recap

Recap

12th Grade

10 Qs

Computer Basics 2 - CESA

Computer Basics 2 - CESA

7th Grade - University

10 Qs

Chapter 2: Input Device

Chapter 2: Input Device

12th Grade - University

12 Qs

Topic 1 C++ Programming

Topic 1 C++ Programming

Assessment

Quiz

Computers

12th Grade

Practice Problem

Easy

Created by

Wayground Content

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which C++ data type is used to store single characters?

int

float

char

double

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which C++ data type is used to store true/false values?

int

float

bool

char

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a valid way to initialize a variable in C++?

int x;

x = 5;

int x = 5;

All of the above.

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the purpose of the return 0; statement in the main() function of a C++ program?

It indicates that the program executed successfully.

It returns the value 0 to the operating system.

It terminates the program.

All of the above.

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is a logic error?

Forgetting to include a necessary header file

Division by zero

Accidentally swapping two variables in an assignment statement

Using an incorrect operator in an expression

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following C++ code snippet?

Value of y: 5.25

5.25

Value of y: 5

5

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of the following C++ code snippet?

Value of num: 10

Value of num: 11

10

Error: 'num' was not declared in this scope

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

Already have an account?