
C quiz
Authored by Pranay Adak
Computers
University
Used 3+ 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
10 sec • 1 pt
"system()" function is prototyped in
<stdio.h>
<stdlib.h>
<system.h>
<alloc.h>
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Upon failing the execution of "system()" function the return value is
NULL
-1
0
Exit code of the command
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
int main(void)
{
main();
return 0;
}
The code will result in
Infinite loop
Compile time error
Runtime exception
Stack overflow
4.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
The output of the following code
int main(void)
{
printf("%d",printf("%d",0x11));
return 0;
}
111
172
112
216
5.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
What will be the output of the following code
int main(void)
{
int i=-5,j=3;
for(;i<j;i++,j--){}
printf("%d%d",j,i);
return 0;
}
-1-1
-20
0-2
compiler error
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What will be the output of the following code
int main(void)
{
int a[5]={2,7,9,4,-1};
printf("%d",*(a+5));
return 0;
}
-1
Garbage value
Runtime Error
Compilation error
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
A two dimensional array is defined as "int a[m][n]", the address of the element a[i][j] is
a+(i*(n-1)*(sizeof(int)))+(j*(m-1)*(sizeof(int)))
a+(i*n*(sizeof(int)))+(j*(sizeof(int)))
a+(i*(m-1)*(sizeof(int)))+(j*(sizeof(int)))
a+(i*n*(sizeof(int)))+(j*m*(sizeof(int)))
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
10 questions
C Viva
Quiz
•
University
15 questions
Conditionals Unit Quiz
Quiz
•
9th Grade - University
13 questions
Functions
Quiz
•
5th Grade - Professio...
10 questions
DAA-UNIT-4 QUIZ
Quiz
•
University
15 questions
Flutter intro and Dart quiz
Quiz
•
University
10 questions
C++ linked list
Quiz
•
University
15 questions
CIS1101-programming practice
Quiz
•
University
10 questions
pointers and structures
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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
7 questions
Fragments, Run-ons, and Complete Sentences
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
10 questions
DNA Structure and Replication: Crash Course Biology
Interactive video
•
11th Grade - University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
5 questions
Examining Theme
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University