
C program
Quiz
•
Education
•
University
•
Practice Problem
•
Medium
Dr. Mary
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
___________is a collection of data items, all of same type, accessed using a common name
arrays
pointers
statements
data types
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze the program and predict the output
#include<stdio.h>
int main()
{
int mynumbers[ ]={25,60,70,12}
print ("%d", mynumbers[1]);
return 0;
}
60
70
25
12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Examine the program and predict the output
#include<stdio.h>
void main()
{
int a[5]={10,20,30,40,50};
int i;
for(i=0;i<5;i++)
{
printf("%d\n",a[i]);
}
return 0();
}
10,20,30,40,50
10.40,70,90
20,30,40,50
50,40,30,20,10
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following code and determine the output
#include<stdio.h>
int main()
{
int nums[3]={5,15,25};
printf("%d", nums[2]);
return 0;
}
5
15
25
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Inspect the code and predict the output
#include<stdio.h>
int main()
{
int values[4]={1,2,3,4};
for(int j=0;j<4;j++)
{
printf("%d ", values[j]);
}
return 0;
}
1 2 3 4
4 3 2 1
2 3 4
1 2 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Review the following code and determine the output
#include<stdio.h>
int main()
{
int arr[4]={100,200,300,400};
printf("%d", arr[3]);
return 0;
}
100
200
300
400
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Analyze the code snippet and predict the output
#include<stdio.h>
int main()
{
int numbers[5]={1,2,3,4,5};
for(int k=0;k<5;k++)
{
printf("%d ", numbers[k]);
}
return 0;
}
1 2 3 4 5
5 4 3 2 1
2 3 4 5
1 2 3 4
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
15 questions
PRICING AND ITS OBJECTIVES
Quiz
•
University
14 questions
The Cardiovascular System
Quiz
•
University
10 questions
Quiz Akuntansi Manajemen
Quiz
•
University
10 questions
CHAPTER 2:NATIONAL INCOME ACCOUNTING
Quiz
•
University
14 questions
Operations Management
Quiz
•
University
12 questions
JAVA FUNDAMENTALS
Quiz
•
University
10 questions
Basic Python
Quiz
•
10th Grade - University
12 questions
Capacity & Process Design
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
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
