
First Quiz
Authored by Nabeel Ahmed
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for declaring a variable in C++?
a) int x;
b) x = 5;
c) variable x;
d) declare x;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, which stream is used for standard output?
a) cin
b) cout
c) cerr
d) clog
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you read input from the user in C++?
a) input()
b) scan()
c) cin
d) read()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the "if" statement in C++?
a) Looping
b) Decision making
c) Function declaration
d) Variable initialization
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the "else" statement do in C++?
a) Starts a new block of code
b) Defines a function
c) Executes when the "if" condition is false
d) Terminates the program
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is the ternary operator written in C++?
a) ? :
b) &&
c) ||
d) //
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In C++, what is the purpose of nested if-else statements?
a) Increase code readability
b) Perform multiple checks sequentially
c) Avoid syntax errors
d) Improve program performance
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
Primer Parcial DPI
Quiz
•
University
25 questions
unit2_Computer Graphics MCQs
Quiz
•
University
25 questions
Компьютерные технологии_6
Quiz
•
University
35 questions
Ôn Tập Học Kì I Lớp 4
Quiz
•
4th Grade - University
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
25 questions
python_quiz
Quiz
•
University
25 questions
KIEM TRA TX-K11 (BO SUNG)
Quiz
•
11th Grade - University
25 questions
Quiz # 2 - Advanced Multimedia Systems T2_24-25
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University