C++ Quiz
Quiz
•
Computers
•
University
•
Medium
SATHISH KUMAR N
Used 21+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1.Who invented C++?
a) Dennis Ritchie
b) Ken Thompson
c) Brian Kernighan
d) Bjarne Stroustrup
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Which of the following is used for comments in C++?
a) /* comment /
b) // comment /
c) // comment
d) both // comment or /* comment */
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
3.Which of the following is a correct identifier in C++
a) VAR_1234
b) $var_name
c) 7VARNAME
d) 7var_name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
4.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++
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5.Which of the following correctly declares an array in C++?
a) array{10};
b) array array[10];
c) int array;
d) int array[10];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
6.What is the size of wchar_t in C++?
a) Based on the number of bits in the system
b) 2 or 4
c) 4
d) 2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
7. Which is more effective while calling the C++ functions?
a) call by object
b) call by pointer
c) call by value
d) call by reference
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Programación II Parte 5
Quiz
•
University
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
10 questions
Quiz Ke 8 alprog if-09
Quiz
•
University
15 questions
Herramientas de Google
Quiz
•
12th Grade - University
12 questions
Javascript
Quiz
•
University
10 questions
Bootstrap
Quiz
•
University
10 questions
Деректер типтері
Quiz
•
7th Grade - University
10 questions
Gebang Logika
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
