
C Quiz 5_M

Quiz
•
Computers
•
University
•
Medium
SAI KRISHNA
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
C Viva

Quiz
•
University
10 questions
C Program Array and strings

Quiz
•
University
10 questions
Arrays in C (II yr 02.07.2020)

Quiz
•
University
18 questions
C Language 101

Quiz
•
University
15 questions
CIS1101-programming practice

Quiz
•
University
10 questions
pointers and structures

Quiz
•
University
20 questions
Operator in C

Quiz
•
University
17 questions
Minggu V - PKS 2 - Pemrograman C++

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University