
C programming
Quiz
•
Instructional Technology
•
University
•
Easy
Sumit Kumar
Used 3+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
What is the range of value that can be stored by int data types in C?
-(2^31) to (2^31)-1
-256 to 255
-(2^63) to (2^63)-1
0 to (2^31)-1
Answer explanation
-(2^31) to (2^31)-1
2.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
What will be the output of the following code snippet?
#include<studio.h>
int main(){
int a=3, b=5;
int t = a;
a = b;
b = t;
printf("%d%d",a,b);
return 0;
}
3 4
3 3
5 5
5 3
Answer explanation
5 3
3.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How is an array initialized in C language:
int a[3] = {1,2,3};
int a = {1,2,3};
int a[] = new int [3];
int a(3) = [1,2,3];
Answer explanation
int a[3] = {1,2,3};
4.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How is the 3rd element in an array accessed based on pointer notation?
*a+3
*(a+3)
*(*a+3)
&(a+3)
Answer explanation
*(a+3)
5.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
How are String represented in memory in C?
An array of characters.
The object of some class.
Same as other primitive data types.
LinkedList of characters.
Answer explanation
An array of characters.
6.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
What is the disadvantage of arrays in C?
The amount of memory to be allocated should be known beforehand.
Elements of an array can be accessed in constant time.
Elements are stored in contiguous memory blocks.
Multiple other data structures can be implemented using arrays.
Answer explanation
The amount of memory to be allocated should be known beforehand.
7.
MULTIPLE CHOICE QUESTION
20 sec • Ungraded
Which of the following is an exit controlled loop?
While loop.
For loop.
do-while loop.
None of the above.
Answer explanation
do-while loop.
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Instructional Technology
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
7 questions
Central Idea of Informational Text
Interactive video
•
4th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
7 questions
Transition Words and Phrases
Interactive video
•
4th Grade - University
18 questions
Plotting Points on the Coordinate Plane
Quiz
•
KG - University
5 questions
Declaration of Independence
Interactive video
•
4th Grade - University
