
PU - Day 1 assessments - Mahendran's batch

Quiz
•
Professional Development
•
Professional Development
•
Hard
training atomm
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 3;
int b = ++a + a++ + --a;
printf("Value of b is %d", b);
}
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 5;
int y = x++ + --x + x--;
printf("Value of y is %d", y);
}
Value of y is 10
Value of y is 12
Value of y is 15
Value of y is 8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int p = 2, q = 3;
int r = p * ++q + --p;
printf("Value of r is %d", r);
}
Value of r is 5
Value of r is 6
Value of r is 7
Value of r is 8
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int m = 4;
int n = m-- + --m + ++m;
printf("Value of n is %d", n);
}
Value of n is 10
Value of n is 9
Value of n is 8
Value of n is 7
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int a = 6;
int b = a++ + ++a + --a;
printf("Value of b is %d", b);
}
Value of b is 18
Value of b is 16
Value of b is 12
Value of b is 14
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int x = 7;
int y = --x + x-- + ++x;
printf("Value of y is %d", y);
}
Value of y is 21
Value of y is 19
Value of y is 20
Value of y is 18
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int p = 5, q = 2;
int r = p / --q + ++p;
printf("Value of r is %d", r);
}
Value of r is 5
Value of r is 6
Value of r is 8
Value of r is 7
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
CPR_Quiz_Chapter4_function

Quiz
•
Professional Development
10 questions
pemrograman dasar

Quiz
•
Professional Development
10 questions
หน่วยที่ 4 การเขียนโปรแกรมแบบเลือกทำ

Quiz
•
Professional Development
15 questions
C Operators

Quiz
•
University - Professi...
15 questions
Tutorial 1 Chapter 4 C Programming

Quiz
•
Professional Development
10 questions
Programação C

Quiz
•
Professional Development
10 questions
DAY 1 - C& C++ Assessment _10th June 24

Quiz
•
Professional Development
10 questions
CPR Quiz_chapter 5_structure

Quiz
•
Professional Development
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade