
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
PHP & MySQL

Quiz
•
University
25 questions
Aptitude Competition(FY)

Quiz
•
University
20 questions
Pointers

Quiz
•
University
20 questions
UAS Struktur Data 2022

Quiz
•
University
30 questions
C-Programming

Quiz
•
University
25 questions
Java - SET -1

Quiz
•
University
20 questions
ASK T2 - Kod Arahan (Python)

Quiz
•
7th Grade - University
30 questions
OODP_Batch2_Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University