
CC 102 Quiz 2

Quiz
•
Information Technology (IT)
•
University
•
Hard
Daffodelle V. Lucena
FREE Resource
39 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the line // my first program in C++?
It executes before the program starts
It is a comment and has no effect on the program
It declares the main function
It includes a library
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the directive #include <iostream> do?
Starts the program execution
Ends the program execution
Includes the standard input-output stream library
Creates a new function
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the significance of the line int main()?
It includes the input-output stream
It defines the starting point of a C++ program
It is a comment line
It is used to declare a variable
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following symbols are used to define the beginning and end of a function body?
( )
< >
[ ]
{ }
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is NOT true about blank lines in C++?
They affect how the program runs
They improve readability
They are ignored by the compiler
They can be placed anywhere in the code
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a variable in C++?
A reserved keyword in the language
A portion of memory to store a value
A comment used to document the code
A line of code that prints output
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a valid identifier in C++?
2value
total-sum
_count
break
Create a free account and access millions of resources
Similar Resources on Wayground
35 questions
SPECIAL EXAMINATION - TM104

Quiz
•
University
40 questions
Quiz de Programação Orientada a Objetos

Quiz
•
University
40 questions
INFORMATIKA 11 PG

Quiz
•
11th Grade - University
39 questions
MODULE 6 Decision Control and Switch Case

Quiz
•
University
40 questions
Python Programming Quiz

Quiz
•
University
35 questions
Long Quiz (WS101)

Quiz
•
University
41 questions
Access

Quiz
•
University
37 questions
ITE 292 P3 Exam

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 Information Technology (IT)
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