
CSC126_Quiz9_Chapter6
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
TS ZAKARIA
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an array in C++?
A list of functions
A collection of variables of different types
A fixed-size collection of variables of the same type
A dynamic list of classes
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
1
-1
0
Depends on the compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct array declaration?
int nums();
array int[10];
int nums[10];
int nums{};
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of cout << max[0]; if int max[5] = {10, 3, 2, 40, 1};?
3
0
10
1
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which keyword is used to declare an array of characters in C++?
string
str
text
char
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if the number of elements is less than the array size during initialization?
Compilation error
Remaining elements are garbage values
Remaining elements are filled with zeros
Only the specified elements are used
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an illegal declaration?
int arr[3] = {1, 2, 3, 4};
int arr[ ] = {5, 6, 7};
int arr[4] = {1, 2};
int arr[5];
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
11 questions
Access
Quiz
•
10th Grade - University
13 questions
CIS2303 Week_3 CLO2
Quiz
•
University
20 questions
basisdata1
Quiz
•
University
10 questions
Pengantar Coding
Quiz
•
University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
20 questions
PARC Linux Basic Part 2
Quiz
•
University
20 questions
1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni
Quiz
•
University - Professi...
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
