
Arrays
Quiz
•
Computers
•
11th Grade
•
Medium
Ilakkiya N
Used 6+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly declares an array of 10 integers in C?
int arr(10);
int arr[10];
array int arr[10];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about arrays is TRUE in C?
Arrays can hold different data types.
The size of an array can be changed during execution.
An array stores elements of the same type in contiguous memory.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in a C array?
0
1
-1
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to initialize all elements of an array to zero in C?
int arr[5] = (0);
int arr[5] = {0};
int arr[5] = 0;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How are arrays stored in memory?
All elements are stored in a contiguous block of memory.
Each element is stored at a random memory location.
Elements are dynamically linked to the next element in memory.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a valid array declaration?
int arr[10];
int arr[3] = {1, 2, 3, 4};
int arr[] = {1, 2, 3};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output?
#include <stdio.h>
int main()
{
int arr[2];
arr[0] = 1;
arr[1] = arr[0] + 1;
printf("%d", arr[1]);
return 0;
}
0
1
2
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
Mengenal Jendela dan Ikon Microsoft Excel
Quiz
•
7th Grade - University
10 questions
C++ Array Quiz
Quiz
•
University
14 questions
Оформлення текстових документів
Quiz
•
12th Grade
10 questions
Jaringan Komputer / AIJ
Quiz
•
11th Grade
10 questions
Node.js
Quiz
•
University
10 questions
Численные методы
Quiz
•
12th Grade
10 questions
GUESS THE ANSWER
Quiz
•
University
10 questions
Software Testing
Quiz
•
University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
6 questions
FOREST Self-Discipline
Lesson
•
1st - 5th Grade
7 questions
Veteran's Day
Interactive video
•
3rd Grade
20 questions
Weekly Prefix check #2
Quiz
•
4th - 7th Grade
Discover more resources for Computers
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
19 questions
Explore Triangle Congruence and Proofs
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
15 questions
Identify Triangle Congruence Criteria
Quiz
•
9th - 12th Grade
23 questions
Similar Figures
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
