
CSC126_Quiz9_Chapter6

Quiz
•
Computers
•
University
•
Hard
TS ZAKARIA
FREE Resource
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];
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
RVS_Tech_quizz_even2024-25

Quiz
•
University
20 questions
UAS Struktur Data 2022

Quiz
•
University
11 questions
Recap Chapter 6, 7, 8

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
15 questions
ARRAYLIST - JAVA

Quiz
•
University
20 questions
Pointers

Quiz
•
University
15 questions
C programming

Quiz
•
University
14 questions
Array output

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University