What is the output of the following code?

Infosys 5

Quiz
•
Computers
•
Professional Development
•
Hard
Prashant Soni
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
5 20
20 5
5 5
20 20
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
int x=(3,4,5,6,7);
int y=(3,4,5);
printf("%d",x+y);
return 0;
}
10
11
12
13
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
double f;
int arr[sizeof(f)];
printf("%ld",sizeof(arr));
return 0;
}
8
16
32
64
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
char *ch="INFOSYS";
printf("%c",*&*&*(ch));
return 0;
}
I
IN
INF
INFO
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include <stdio.h>
int main()
{
int x;
void *p;
while(!!sizeof(p))
{
printf("hello");
p=(void*)x;
}
return 0;
}
hello infinite times
Compilation Error
Segment Fault Error
Run time Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does the following function do?
Display value of all nodes from starting to last.
Loop not execute
Display value of all nodes from last to starting.
Compilation Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Initialize Integer x, y, z
Set y = 1, x = 2
z = x ^ y
Print z
1
2
3
4
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Integer value, n
Set value = 1, n = 45
while(value less than equal to n)
value = value << 1
end loop
Print value
16
32
64
128
Similar Resources on Quizizz
13 questions
MindSpace Computers C Quiz-1 2025

Quiz
•
Professional Development
10 questions
C Code Master lvl 2 A

Quiz
•
Professional Development
10 questions
ตัวแปรและประเภทข้อมูลในภาษาC

Quiz
•
Professional Development
5 questions
NECTS- Code Debugging Elimination Round

Quiz
•
Professional Development
10 questions
C Programming Quiz

Quiz
•
Professional Development
10 questions
T&P Test on MCQs

Quiz
•
Professional Development
10 questions
php- basics

Quiz
•
Professional Development
10 questions
Day 3 C Programming quiz

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade