
C Arrays Quiz
Authored by T.NAGALAKSHMI Dept
Computers
Professional Development
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is an array with 5 integers declared in C?
int a(5);
int a[5];
int[5] a;
array a[5];
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
0
1
First
Start
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To access the third element of an array named 'arr', you would use:
arr[2]
arr[3]
arr(2)
arr(3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the size in bytes of an array int arr[20]; if an integer requires 4 bytes of memory?
40
80
20
5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid declaration for a 2D array?
int a[][] = {{1,2}, {3,4}};
int a[2,2] = {{1,2}, {3,4}};
int a[2][2] = {{1,2}, {3,4}};
array a[2][2] = {{1,2}, {3,4}};
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to declare a 3D array?
int a[][][] = {{{1},{2},{3}},{{4},{5},{6}}};
int a[3][3][3];
int[3][3][3] a;
Both A and B
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In an array declaration int arr[5] = {1, 2, 3};, what will be the value of arr[3]?
1
2
3
0
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
HERData
Quiz
•
Professional Development
10 questions
Úng dụng công nghệ thông tin
Quiz
•
Professional Development
10 questions
ABC
Quiz
•
Professional Development
14 questions
Day 1 - Basics of Java
Quiz
•
Professional Development
11 questions
L7 - Bài 14 TT Tuần tự
Quiz
•
Professional Development
12 questions
MME 5.1-Conectores
Quiz
•
Professional Development
10 questions
AWS Practitioner - 10
Quiz
•
Professional Development
15 questions
Network Plus Pre Assessment
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
12 questions
Mardi Gras Trivia
Quiz
•
Professional Development
7 questions
Copy of G5_U5_L14_22-23
Lesson
•
KG - Professional Dev...
12 questions
Unit 5: Puerto Rico W1
Quiz
•
Professional Development
42 questions
LOTE_SPN2 5WEEK2 Day 4 We They Actividad 3
Quiz
•
Professional Development
15 questions
Balance Equations Hangers
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...