
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
20 questions
ip address
Quiz
•
1st Grade - University
19 questions
QUIZ INFORMATIKA
Quiz
•
1st - 10th Grade
10 questions
البرمجة بلغة الفيجول بيسك
Quiz
•
1st - 3rd Grade
20 questions
PRUEBA DE DIGITACIÓN
Quiz
•
1st - 3rd Grade
10 questions
Mrs Clarke & Mrs Gaffneys' Touch Typing Quiz
Quiz
•
1st - 2nd Grade
14 questions
SAM LABS Starter Quiz
Quiz
•
1st - 5th Grade
17 questions
Lección1 - JavaScript
Quiz
•
1st Grade - Professio...
20 questions
kiểm tra khối 3
Quiz
•
1st - 10th Grade
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Heating / Cooling Matter
Quiz
•
1st Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
Counting Coins
Quiz
•
1st Grade
10 questions
Identifying Points, Lines, Rays, and Angles
Interactive video
•
1st - 5th Grade
5 questions
Heating and Cooling Pre-Assessment
Quiz
•
1st Grade
20 questions
VOWEL TEAMS: AI and AY
Quiz
•
1st Grade