
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
10 questions
Flutter_Q5

Quiz
•
Professional Development
15 questions
C Programming Tutorial 1 (Chapter 2)

Quiz
•
Professional Development
10 questions
Java Quiz1 Basics and OOPS

Quiz
•
Professional Development
10 questions
Strings

Quiz
•
Professional Development
10 questions
VA / NVA / ENABLING

Quiz
•
Professional Development
10 questions
Day16_Quiz_NBKR

Quiz
•
Professional Development
10 questions
Quiz for Module2

Quiz
•
Professional Development
10 questions
Day12_Quiz_NBKR

Quiz
•
Professional Development
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