
C Quiz 4_M

Quiz
•
Computers
•
University
•
Hard
SAI KRISHNA
Used 2+ 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()
{
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
C Practice Test 1

Quiz
•
University
19 questions
C Language Array Quiz

Quiz
•
University
20 questions
CSE C Section

Quiz
•
University
12 questions
Printf, scanf

Quiz
•
University
10 questions
ECE-C Quiz _3

Quiz
•
University
20 questions
Programming Concepts in C

Quiz
•
University
20 questions
Quantitative Aptitude Series

Quiz
•
University
19 questions
Programacion en C. Introducción

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University