
Arrays
Authored by Aruna Devi
Computers
University
Used 46+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int j[4] the sizeof(j) and sizeof(int )
will display the value
8,2
2,8
2,2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is the correct statement to declare an
array?
int x[];
int x[5];
int x{5};
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Find the output
void main()
{
int i,marks[5]={55,56,67,78,64};
clrscr();
for(i=2;i<=4;i++)
printf(“\n %d”,marks[i]);
getche();
}
4.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Find the output
void main()
{
char name []={’a’,’m’,’i’,’t’};
int i;
clrscr();
for(i=0;i<=4;i++)
printf(“%c”,name[i]);
getche();
}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose a correct statement about C language arrays.
An array address is the address of first element of array itself.
An array size must be declared if not initialized immediately.
Array size is the sum of sizes of all elements of the array.
All the above
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
find the output
void main()
{
int a1[5]={1};
int b=0,k=0;
clrscr();
for(b=0;b<=4;b++)
{
printf(“%3d”,++a1[0]);
}
}
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of C program.?
int main()
{
float marks[3] = {90.5, 92.5, 96.5};
int a=0;
while(a<3)
{ printf("%.2f,", marks[a]); a++; } }
90.5 92.5 96.5
90.50 92.50 96.50
0.00 0.00 0.00
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
12 questions
Porcentajes
Quiz
•
University
15 questions
ADVACOMT-Quiz No.1 (final term)
Quiz
•
University
10 questions
Web-II-Loop and Function
Quiz
•
University
10 questions
Què en saps de GSuite?
Quiz
•
University - Professi...
10 questions
Algorithm analysis: divide & conquer theory
Quiz
•
University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
10 questions
Programacion Orientada a Objetos
Quiz
•
12th Grade - University
10 questions
Soal SKD
Quiz
•
University - Professi...
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