
CC 102 - Array and Character Sequence
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Daffodelle V. Lucena
Used 5+ times
FREE Resource
Enhance your content in a minute
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does an array store?
Values of different types
Elements of the same type in contiguous memory
Only character values
Random data in non-contiguous memory
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The first element of an array in C++ has an index of:
1
-1
0
Depends on the compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares an array of 10 integers?
array int[10];
int num[10];
int num = [10];
int[10] num;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you access an index beyond the array’s size?
Compiler error
Nothing happens
Runtime error may occur
The compiler automatically resizes the array
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the declaration int foo[5] = {10, 20, 30};, what are the last two elements initialized to?
0
10
Random garbage values
Undefined
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to initialize an array with five elements?
int a[5] = {1, 2, 3, 4, 5};
int a[] = {1, 2, 3, 4, 5};
Both A and B
None of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What type of error occurs when you exceed the valid range of indices?
Compilation error
Logical/runtime error
Syntax error
Linker error
Create a free account and access millions of resources
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
50 questions
MIDTERM EXAM HCI 2
Quiz
•
University
50 questions
BPM LONG QUIZ
Quiz
•
University
50 questions
Ulangan Informatika kelas 9 Bab Berfikir Komputasional
Quiz
•
9th Grade - University
50 questions
тест2
Quiz
•
University
50 questions
INTRO TO ICT TEST
Quiz
•
University
47 questions
Digital Citizenship and Spreadsheets
Quiz
•
7th Grade - University
52 questions
Module 2: Attacks, Concepts, and Techniques
Quiz
•
University
50 questions
9- класс
Quiz
•
9th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
