C++ SHS B1-B2

Quiz
•
Computers
•
11th Grade
•
Hard
John Oli
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: In C++, the `cout` object is used to output data to the console.
True
False
2.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: The following code will correctly declare an integer variable in C++:
int number = 5;
True
False
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: The `<<` operator is used with `cout` for input operations.
True
False
Answer explanation
False (It is used for output operations)
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
True or False:
The statement `cout >> "Hello, World!";` is a valid way to print "Hello, World!" in C++.
True
False
Answer explanation
False (The correct syntax is `cout << "Hello, World!";`)
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False: In C++, a variable declared as `float` can store decimal values.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False:
The following code snippet will print `25` to the console:
int x = 5; cout << x * 5;
True
False
7.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
True or False:
The keyword `double` is used in C++ to declare a variable that can store a floating-point number with double precision.
True
False
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Session 1

Quiz
•
9th - 12th Grade
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
12 questions
Post Test Pengenalan Pemrograman Bahasa C++

Quiz
•
11th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 12th Grade
20 questions
Toán tử trong C ++

Quiz
•
10th - 12th Grade
12 questions
Bab 1.4.2 - Operator Hubungan dan Operator Logikal dlm Struktur

Quiz
•
9th - 12th Grade
10 questions
Bài tập trắc nghiệm C++

Quiz
•
3rd - 12th Grade
10 questions
Programming - Iteration, Basic Programming Constructs & Loop

Quiz
•
2nd - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade