Topic 1 C++ Programming

Quiz
•
Computers
•
12th Grade
•
Easy
Wayground Content
Used 9+ times
FREE Resource
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
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
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
Similar Resources on Wayground
15 questions
Control statements in C++

Quiz
•
9th - 12th Grade
15 questions
JavaScript Basics

Quiz
•
12th Grade - University
10 questions
Quiz - 6 on Relational & Logical Operators

Quiz
•
12th Grade
10 questions
T_4.2 Identifier, Data Types, Operators & Expressions

Quiz
•
12th Grade - University
10 questions
Operators in C

Quiz
•
9th - 12th Grade
7 questions
Java Basics #2

Quiz
•
10th - 12th Grade
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
15 questions
C# Concepts and Code Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade