
C++ Pre-Test
Authored by AMBILI S
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
Designing Network Infrastructure and Network Security
Quiz
•
KG - University
20 questions
PARC Linux Basic Part 2
Quiz
•
University
20 questions
Google SketchUp Tool
Quiz
•
KG - University
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
20 questions
Next Generation Technology Quiz
Quiz
•
University
20 questions
Sketup M1 รวม สาระเพิ่ม
Quiz
•
University
20 questions
basisdata1
Quiz
•
University
20 questions
PRINTERS
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade