
Fundamentals of C and C++ Programming

Quiz
•
Other
•
University
•
Easy
DILEEP KUMAR SAHU
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of a compiler?
To optimize high-level code for better performance.
To debug high-level code for errors.
To execute high-level code directly without translation.
The primary purpose of a compiler is to translate high-level code into machine code.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Explain the difference between C and C++.
C is a high-level language; C++ is a low-level language.
C supports classes; C++ does not support classes.
C is procedural; C++ is object-oriented.
C is used for system programming; C++ is only for web development.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a variable in programming?
A variable is a command that executes a specific task in the program.
A variable is a symbolic name for a storage location in memory that can hold a value and can be changed during program execution.
A variable is a fixed value that cannot be changed during program execution.
A variable is a type of function that performs calculations.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a variable in C/C++?
declare
To declare a variable in C/C++, use the syntax:
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function and why is it used?
A function is a reusable block of code that performs a specific task.
A function is a method for creating user interfaces.
A function is a graphical representation of data.
A function is a type of variable that stores data.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the main() function in C/C++?
The main() function is where all the functions are declared.
The main() function is responsible for memory management.
The main() function is used for defining global variables.
The main() function is the entry point of a C/C++ program.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are data types in C/C++?
Primitive types, composite types, functional types
Integer types, floating-point types, string types
Static types, dynamic types, abstract types
Basic types, derived types, user-defined types
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Diuretics

Quiz
•
University
11 questions
The Norris Nuts Quiz

Quiz
•
University
15 questions
CONTROL OF MOBILE ROBOTS

Quiz
•
University
20 questions
Electronic Fuel Injection Systems Quiz

Quiz
•
11th Grade - University
10 questions
Information systems analysis and design

Quiz
•
University
20 questions
uh sistem kendali

Quiz
•
University
20 questions
Earth Faults and Protection Quiz

Quiz
•
12th Grade - University
10 questions
Arduino MCQ

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University