
Arrays
Authored by Ilakkiya N
Computers
11th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
10 questions
python quiz
Quiz
•
6th Grade - Professio...
15 questions
Cyber Security KS4
Quiz
•
8th - 12th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
11 questions
Youtube
Quiz
•
4th Grade - University
12 questions
Windows 10 Installation
Quiz
•
11th - 12th Grade
15 questions
Empowerment Technologies
Quiz
•
KG - 12th Grade
15 questions
Excel
Quiz
•
10th - 12th Grade
14 questions
Pre-test: On Online searching by Innovative Teaching Ideas)
Quiz
•
6th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade