
C Programming - Array MCQs
Authored by PRIYADHARSHNI S
Information Technology (IT)
University
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
An array is:
A collection of different data types
A collection of variables of same data type
A dynamic list
A structure
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The index of the first element of an array in C is:
1
-1
0
Depends on compiler
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The correct way to declare an array of 10 integers is:
int arr(10);
int arr[10];
array int arr[10];
int arr[] = 10;
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of: int arr[5] = {1,2,3}; printf("%d", arr[4]);
3
4
0
Garbage value
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will sizeof(arr) return for: int arr[5];
5
10
20
Depends on values
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these initializes all elements to 0?
int arr[5] = {0};
int arr[5];
int arr[5] = {1};
int arr[] = {1,2};
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does arr[2] access in: int arr[3] = {1, 2, 3};
1
2
3
Compilation error
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
40 questions
Tema 3. Recepción y distribución de radio y TV terrestre
Quiz
•
2nd Grade - University
40 questions
Infinity Code Nexus
Quiz
•
University
42 questions
COMPAP
Quiz
•
University
35 questions
Computer Science SIS Surabaya
Quiz
•
University
40 questions
Quiz tentang VLAN
Quiz
•
11th Grade - University
40 questions
Trắc nghiệm củng cố kiến thức lớp 11 HK2
Quiz
•
11th Grade - University
40 questions
Ujian Akhir Semester Informatika
Quiz
•
7th Grade - University
35 questions
PREPAIR ASAS 2024
Quiz
•
9th Grade - University
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University