
Arrays and Linked Lists Quiz
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Seven Castueras
Used 2+ times
FREE Resource
Enhance your content in a minute
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following best defines an array?
A collection of variables of different data types stored randomly in memory
A sequential collection of elements of the same type stored in contiguous memory locations
A dynamic list of heterogeneous elements stored on the heap
A collection of key-value pairs stored in non-sequential order
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What happens when you declare an array as int arr[5] = {1, 2}; in C?
Compiler error because not all 5 values are initialized
The array contains {1, 2, 0, 0, 0}
The array contains {1, 2, garbage, garbage, garbage}
Array size automatically becomes 2
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In Java, which of the following is NOT a valid array declaration?
int[] numbers;
int numbers[];
int numbers = new int[10];
int[] numbers = new int[5];
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
(Scenario) A developer wants to create an array that stores ["apple", 10, true]. Which language allows this directly without error?
C
C++
Java
JavaScript
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
True/False (as MCQ): Python has a built-in array data type that strictly enforces homogeneity of elements.
True
False
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is an example of a two-dimensional array declaration in C?
int arr[3][4];
int arr[12];
int arr(3,4);
int arr[3,4];
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
(Scenario) Suppose an array has 100 elements. A student writes a loop to print all elements. What is the time complexity of this traversal?
O(1)
O(log n)
O(n)
O(n²)
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
45 questions
Computer Hardware and Software Review
Quiz
•
KG - University
40 questions
Post test Keamanan Jaringan
Quiz
•
University
45 questions
Davinci Resolve 17 Fusion 101
Quiz
•
11th Grade - Professi...
41 questions
Soal WAN Tkj kls 2
Quiz
•
University
50 questions
KUIS PKK 2 (PERAKITAN PRODUK)
Quiz
•
KG - Professional Dev...
45 questions
Microsoft Excels: Formulas and Functions
Quiz
•
12th Grade - University
40 questions
Introduction to Web Systems Exam
Quiz
•
University
40 questions
2025 UAS
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th 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
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
