
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
10 questions
Expression in C Programming

Quiz
•
University
12 questions
Operators in C

Quiz
•
University
15 questions
BASIC C PROGRAMMING QUIZ

Quiz
•
University
10 questions
POST TES MATRIKULASI

Quiz
•
10th Grade - University
16 questions
Lógica de Programação

Quiz
•
University
13 questions
ÔN TẬP C - mảng 1 chiều

Quiz
•
University
10 questions
Pengantar Coding

Quiz
•
University
20 questions
C PROGRAMMING LANGUAGE

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

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

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University