
C Arrays
Authored by sandeep aggarwal
Computers
University
Used 31+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Quiz Pemrograman Dasar
Quiz
•
10th Grade - University
40 questions
ASD62
Quiz
•
University
31 questions
A+ Pretest 1: 1/3
Quiz
•
9th Grade - Professio...
41 questions
E. 13 Technik Informatyk
Quiz
•
7th Grade - University
41 questions
Soal WAN Tkj kls 2
Quiz
•
University
40 questions
TIN HỌC 12 - ÔN TẬP GK1 2425
Quiz
•
12th Grade - University
34 questions
IP Week 2 C/C++ Overview
Quiz
•
University
40 questions
Introduction to Web Systems Exam
Quiz
•
University
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
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University