Which header file is required to use cin and cout?

C++ Programming Quiz

Quiz
•
Information Technology (IT)
•
12th Grade
•
Hard
Dina Sharawy
FREE Resource
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? cout << 4 + 5;
9
45
4 + 5
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used for division in C++?
/
\
//
div
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of cout << "Hello" << " " << "World!";?
Hello World!
HelloWorld!
Error
Hello World!
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to read a string input from the user?
cin << stringVariable;
cin >> stringVariable;
read stringVariable;
input(stringVariable);
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int a = 10; cout << a--;
10
9
Error
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the modulus operator (%) do?
Adds two numbers
Subtracts two numbers
Returns the remainder of a division
Multiplies two numbers
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
12A and C version 2 Final Semester 1 Exam

Quiz
•
12th Grade
25 questions
G9-Introduction to Python Programming

Quiz
•
9th Grade - University
20 questions
quiz1B1

Quiz
•
7th Grade - University
25 questions
Seatwork #4

Quiz
•
12th Grade - University
16 questions
4.1 Kod Arahan

Quiz
•
1st Grade - University
18 questions
Python Library Routines Quiz

Quiz
•
10th Grade - University
20 questions
Soal Pemrograman Dasar

Quiz
•
12th Grade
20 questions
Video Game Programming and Design Questions

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University