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
Similar Resources on Wayground
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
10 questions
Programming in C

Quiz
•
University
10 questions
PHP

Quiz
•
University
10 questions
Time Complexity

Quiz
•
University
10 questions
C Language Basic Quiz

Quiz
•
7th Grade - Professio...
15 questions
Qûîz

Quiz
•
University
11 questions
Programming I Quiz 1

Quiz
•
University
12 questions
Quizz Internet

Quiz
•
KG - Professional Dev...
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