
C Arrays

Quiz
•
Computers
•
University
•
Hard
sandeep aggarwal
Used 31+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
38 questions
Тест 2 C#

Quiz
•
University
32 questions
Unit 1 APCSA

Quiz
•
9th Grade - University
35 questions
One Dimensional Array

Quiz
•
University
32 questions
C# Skill Review

Quiz
•
12th Grade - Professi...
40 questions
Array of Structures 2

Quiz
•
University
40 questions
Trivia(Explore in depth)

Quiz
•
University
40 questions
Playing Code!

Quiz
•
University
33 questions
Pre assessment quiz_ Front end + react_Haveri

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University