
C Quiz 5_M
Authored by SAI KRISHNA
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
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
int main()
{
int a,b;
a=1, 3, 15;
b=(2, 4, 6);
printf("%d, %d",a,b);
return 0;
}
1, 6
15, 6
1, 2
Error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q.Predict the Output:
#include <stdio.h>
int main()
{
int i=0;
if(i==0)
{
i=((5,(i=3)),i=1);
printf("%d",i);
}
return 0;
}
1
0
Error
5
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
int call(int a);
int main()
{
static int main;
int x;
x= call(main);
printf("%d",x);
return 0;
}
int call(int a)
{
a++;
return a;
}
1
0
Error
None
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include<stdio.h>
#include<string.h>
int main()
{
printf("%ld, %ld", sizeof("sai"), strlen("sai"));
return 0;
}
4, 3
4, 4
3, 3
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include<stdio.h>
#include<string.h>
int i=8;
int main()
{
int i=9;
printf("%d",i);
return 0;
}
9
8
0
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
struct marks
{
int p;
int c;
int m;
};
int main()
{
struct marks s={2,-6,5};
printf("%d, %d, %d ",s.p,s.c,s.m);
return 0;
}
2, -6, 5
Error
None
0, 0, 0
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Q. Predict the Output:
#include <stdio.h>
struct marks
{
int p;
int c;
int m;
};
int main()
{
struct marks s;
printf("%d,%d,%d",s.p,s.c,s.m);
return 0;
}
0, 0, 0
Error
None
GV, GV, GV
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
11 questions
Herramientas WEB
Quiz
•
6th Grade - Professio...
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
10 questions
T02: Python - The Basics
Quiz
•
University
10 questions
REVIEW AD KLS 9
Quiz
•
9th Grade - University
10 questions
6 - Изменение размеров и формы объектов
Quiz
•
University
10 questions
Machine Learning (Introduction)
Quiz
•
University
10 questions
Kuis Sensor 1
Quiz
•
University
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
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
7 questions
Force and Motion
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
14 questions
Ch.3_TEACHER-led
Quiz
•
University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University