
C++ Programming Quiz

Quiz
•
Information Technology (IT)
•
University
•
Easy
Omita Nanda
Used 1+ times
FREE Resource
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid variable name in C++?
2num
_value
float
num-1
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of `int` in C++?
2 bytes
4 bytes
8 bytes
Depends on system
3.
OPEN ENDED QUESTION
3 mins • 1 pt
True/False: In C++, variables must be declared before use.
Evaluate responses using AI:
OFF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int a = 10; if(a > 5) cout << "Hello"; else cout << "World";
Hello
World
HelloWorld
No output
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used in an if statement to check equality?
=
==
===
!=
6.
OPEN ENDED QUESTION
3 mins • 1 pt
True/False: The `else` part in an if-else statement is mandatory in C++.
Evaluate responses using AI:
OFF
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following loop print? for(int i = 0; i < 3; i++) cout << i << " ";
0 1 2
1 2 3
0 1 2 3
Infinite loop
Create a free account and access millions of resources
Similar Resources on Wayground
25 questions
IT 403 - Quiz 1

Quiz
•
University
30 questions
emoji quiz round 1

Quiz
•
University
25 questions
Java Quiz in tamil theme by jamal

Quiz
•
University
23 questions
Quizz về Anatomy of Mobile

Quiz
•
University
23 questions
Grade 7 ICT: Types of Computers

Quiz
•
7th Grade - University
32 questions
Сессия Алгоритм 1-32 сұрақтар

Quiz
•
University
26 questions
The Cloud

Quiz
•
University
30 questions
MS Outlook and Calendar Vocabulary Quiz

Quiz
•
University
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 Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University