
C Arrays
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
sandeep aggarwal
Used 31+ times
FREE Resource
Enhance your content in a minute
36 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Arrays are structures that hold multiple variables of the _____________ data type
int data type
char data type
same data type
different data type
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The first element in the array is by default numbered (index)
_____
-1
0
1
anything by the programmer
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Before using an array its type and dimension must be declared?
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int marks[30]; What the number 30 tells us
int data type size
number of elements in marks array
maximum value, that can stored in marks
None
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is correct syntax for accessing value of 2nd element of an array
int value = marks[1];
int value = marks[2];
int value = marks(1);
int value = marks(2)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is correct syntax for entering 30 at 10th position of an array?
marks[10]=30
marks[9]=29
marks[9]=30
marks[10]=29
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Predict output of following program
int main(){
int i;
int arr[5] = {1};
for (i = 0; i < 5; i++)
printf("%d ", arr[i]);
return 0;
}
1 1 1 1 1
1 followed by 4 junk values
1 0 0 0 0
Compiler 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
HTML
Quiz
•
University
40 questions
Soal Latihan UNBK TKJ
Quiz
•
University
40 questions
Soal Pemograman Dasar
Quiz
•
12th Grade - University
38 questions
ITE 292 NETWORKING 1 P2 EXAM
Quiz
•
University
36 questions
CA К/р "ОАП" 1 семестр
Quiz
•
University
31 questions
CS-PRACTICE
Quiz
•
University
40 questions
TTS Digital Content Creation
Quiz
•
University
35 questions
UH BERPIKIR KOMPUTASIONAL 2024
Quiz
•
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
