Which of the following is a valid declaration in C?
Final Assessment C & C++ & DSA - 2nd August 24

Quiz
•
Professional Development
•
University
•
Medium
KVCH CORPORATE
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
int 3dArray
int _Var
int *ptr,*ptr2
int var-2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
6
5
Undefined
Compilation error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function declarations is correct in C?
int func(int x, y)
int func(int, int)
int func(x, int)
int func(int, int y)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a C++ keyword?
private
friend
virtual
include
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for creating an object in C++?
ClassName objectName
ClassName objectName = new ClassName()
objectName = new ClassName()
ClassName objectName()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following concepts is not supported by C++?
Polymorphism
Abstraction
Reflection
Encapsulation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following C++ code?
What is the default return type of a function in C if it is not specified?
int
void
float
char
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
C- arrays , pointers and functions and macros MCQs

Quiz
•
University
20 questions
Programming Knowledge Quiz (Easy)

Quiz
•
5th Grade - Professio...
26 questions
python programming quiz

Quiz
•
12th Grade - University
30 questions
Midterm Exam

Quiz
•
University
20 questions
Name the Cartoon Network Shows

Quiz
•
KG - University
30 questions
Roll-a-coaster

Quiz
•
University
24 questions
JavaScript_0 Basic

Quiz
•
10th Grade - University
20 questions
Principles of management - 3

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade