
C++ Pre-Test

Quiz
•
Computers
•
University
•
Hard
AMBILI S
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a correct syntax to output "Hello World" in C++?
System.out.println("Hello World");
print ("Hello World");
cout << "Hello World";
Console.WriteLine("Hello World");
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is C++?
a) C++ is an object oriented programming language
b) C++ is a procedural programming language
c) C++ supports both procedural and object oriented programming language
d) C++ is a functional programming language
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is used for comments in C++?
a) /* comment /
b) // comment /
c) // comment
d) both // comment or /* comment */
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct identifier in C++?
a) VAR_1234
b) $var_name
c) 7VARNAME
d) 7var_name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable with the numeric value 5?
x = 5;
double x = 5;
num x = 5
int x = 5;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the following program is executed in C and C++?
#include <stdio.h> int main(void) { int new = 5; printf("%d", new); }
a) Error in C and successful execution in C++
b) Error in both C and C++
c) Error in C++ and successful execution in C
d) A successful run in both C and C++
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following type is provided by C++ but not C?
a) double
b) float
c) int
d) bool
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Quiz I - Programming in C

Quiz
•
University
20 questions
Array and Loops in C#

Quiz
•
University
20 questions
CCE-III Programming in C Language

Quiz
•
University
25 questions
Stack and Queue

Quiz
•
University
20 questions
Zenorix 2023

Quiz
•
University
24 questions
Javascript Basics

Quiz
•
7th Grade - University
21 questions
OOP - session 2.1 - JVM, Array, Stack

Quiz
•
University
26 questions
String in C Programming

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University