
C Quiz 4_M
Authored by SAI KRISHNA
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
int main()
{
char ch;
if(ch=printf(""))
printf("It matters\n");
else
printf("It doesn't matters\n");
return 0;
}
It doesn’t matters
It matters
Error
None
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the output
#include <stdio.h>
int main()
{
int a[5]= {5,1,15,20,25};
int i,j,m;
i= ++a[1];
j= a[1]++;
m= a[i++];
printf("%d,%d,%d",i,j,m);
return 0;
}
3,2,15
2,2,15
3,3,15
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
int main()
{
int a=b=c=10;
a=b=c=50;
printf("\n %d %d %d",a,b,c);
return 0;
}
10 10 10
50 50 50
Error
None
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q.Predict the Output
#include <stdio.h>
int main()
{
int x[]= { 10,20,30,40,50};
printf("\n %d %d %d %d %d", x[4],3[x],x[2],1[x],x[0]);
return 0;
}
50 40 30 20 10
Error
50 GV 30 GV 10
None
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the output
#include <stdio.h>
int main()
{
int i;
i= 0x10;
printf("\n x= %d",i);
return 0;
}
x = 16
x = 10
Error
x = 0
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
#define square(x) x*x
int main()
{
printf("\n square = %d", square(10+2));
return 0;
}
Square=32
Square=144
Square = 152
Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q.Predict the output:
#include <stdio.h>
int main()
{
int x;
x= printf("I See, Sea in C");
printf("\nx = %d",x);
return 0;
}
I See, Sea in C
x = 15
x = 15
Error
I See, Sea in C
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
Software Testing
Quiz
•
University
20 questions
C Programming Unit-1 Test-2
Quiz
•
University
10 questions
C++ Array Quiz
Quiz
•
University
20 questions
Java Quiz 1
Quiz
•
University
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
15 questions
Computer Science Quiz
Quiz
•
University
20 questions
VB
Quiz
•
University
10 questions
Java Control Flow statements
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