Topic 1 C++ Programming

Quiz
•
Computers
•
12th Grade
•
Hard
Nadzatul Rahman
Used 3+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the #include <iostream> directive in a C++ program?
To include standard input/output stream library
To include mathematical functions
To include file handling functions
To include string manipulation functions
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a valid C++ identifier?
123identifier
_identifier
identifier with spaces
identifier-with-hyphens
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which data type is used to store integer values in C++?
int
float
char
bool
4.
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
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which C++ data type is used to store single characters?
int
float
char
double
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 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.
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Pelatihan Pengenalan Bahasa Pemrograman C Part 1

Quiz
•
12th Grade - University
16 questions
C-Programming Basics

Quiz
•
12th Grade
10 questions
C Language Data Types

Quiz
•
12th Grade
11 questions
Python Library-1

Quiz
•
12th Grade
11 questions
Casting in Java

Quiz
•
9th - 12th Grade
10 questions
Quiz - 3 Assignment, Increment & Decrement Operators in C

Quiz
•
12th Grade
13 questions
APCSA Unit 3 Review

Quiz
•
9th - 12th Grade
10 questions
2.2.1 (d) Variables

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade