
C++ Basics for First Semester Students
Authored by Vicky Lagunes
Computers
1st Grade
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in C++?
An array in C++ is a single element of any type.
An array in C++ is a type of function that returns multiple values.
An array in C++ is a collection of elements of the same type stored in contiguous memory.
An array in C++ is a collection of elements of different types stored in random memory.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare an array in C++?
int[10] myArray;
array myArray[10];
int myArray[10];
myArray int[10];
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
-1
1
5
0
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the third element of an array named 'arr'?
arr[1]
arr.get(2)
arr[2]
arr[3]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function in C++?
A function in C++ is a reusable block of code that performs a specific task.
A function in C++ is a keyword used for loops.
A function in C++ is a data structure.
A function in C++ is a type of variable.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define a function in C++?
function_name(parameter_list) return_type { // function body }
return_type function_name { // parameter_list }
A function in C++ is defined as: return_type function_name(parameter_list) { // function body }
function return_type { // function body }
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return statement in a function?
The return statement pauses the function until it is called again.
The return statement allows a function to take user input.
The purpose of the return statement is to exit a function and return a value to the caller.
The return statement is used to print output to the console.
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
14 questions
MS.Word test
Quiz
•
1st Grade
10 questions
Mecanografía
Quiz
•
1st - 3rd Grade
15 questions
Sinh hoạt lớp Tuần 7
Quiz
•
1st Grade - University
20 questions
TEMA 8 MONT (MANTENIMIENTO) - PROFESOR
Quiz
•
KG - Professional Dev...
10 questions
Kiểm tra 15' - Bài 5: Phần mềm
Quiz
•
1st Grade
10 questions
I Can Code!
Quiz
•
KG - University
10 questions
Python-Partie1
Quiz
•
1st Grade
17 questions
Алгоритмы на языке Паскаль
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
6 questions
President's Day
Lesson
•
1st Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
7 questions
Lunar and Chinese New Year for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
10 questions
Presidents Day
Interactive video
•
1st - 5th Grade
15 questions
Making Inferences
Quiz
•
1st - 3rd Grade