
C++ Programming Quiz 2
Authored by seven castueras
Information Technology (IT)
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a function in C++?
A set of rules that specify which statements are legal.
A collection of statements that accomplish something when executed.
A set of rules, symbols, and special words.
The meaning of an instruction in a programming language.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does syntax refer to in a programming language?
The meaning of the instructions.
The collection of predefined or standard functions.
The rules that specify which statements are legal.
The special symbols used in programming.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following best defines a programming language?
A set of rules, symbols, and special words.
A predefined function in C++.
The collection of executable statements.
A part of the operating system.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What do semantic rules define in C++?
The meaning of an instruction.
The rules that specify which statements are legal.
The collection of functions in a program.
The set of special symbols used in coding.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of comments in a C++ program?
To provide instructions to the compiler
To explain the code for the reader
To speed up program execution
To store program variables
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct way to write a multi-line comment in C++?
// This is a multi-line comment
/* This is a multi-line comment */
# This is a multi-line comment #
-- This is a multi-line comment --
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following best describes reserved words (keywords) in C++?
User-defined variable names used in a program.
Special symbols used for arithmetic operations.
Predefined words with specific meanings in the language.
Functions that return values in a program.
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
25 questions
Information Technology – Grade 11 – Practice Activity
Quiz
•
11th Grade - University
25 questions
GROUP2 - QUIZ
Quiz
•
University
25 questions
Using the Developer Tab in Word
Quiz
•
10th Grade - University
25 questions
SOAL CODING
Quiz
•
11th Grade - University
25 questions
LATIHAN SOAL INFORMATIKA KLS 7
Quiz
•
7th Grade - University
25 questions
Classical Cryptography Challenge
Quiz
•
University
25 questions
Form 2 - Information Technology Quiz
Quiz
•
8th Grade - 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
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University