
T&P Test on MCQs
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Hard
BHASKAR ADEPU
Used 3+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
#include<stdio.h>
void main()
{
int x = 20;
int *y;
// Assume address of x is 500 and integer is 4 byte size
y = &x;
*y++;
x++;
printf("x = %d, y = %d \n", x, y);
}
x=21, y=504
x=21, y=506
x=21, y=508
x=21, y=510
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following C code?
#include <stdio.h>
void main() {
int arr[2][3];
arr[][]={{1, 2, 3}, {4, 5, 6}};
printf("%d\n", arr[1][0]);
}
2
1
4
Compilation Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following code?
int c=1;
while(c)
{
printf("Hello");
c--;
if(!c) printf("KITSW");
else printf("END");
}
Hello infinite times printed
HelloKITSW
HelloKITSWEND
Hello
KITSW
END
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of the following nested for loop?
int i, j;
for(i=0;i<4;++i)
{
for(j=i;j<=i;j++)
{
printf("%d %d\n", j, i);
if(j==2) break;
}
}
1
2
3
4
0 0
1 1
3 3
4 4
0 1
1 0
1 1
3 3
0 0
1 1
2 2
3 3
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
struct {
short s[5];
union {
float y;
long z;
}u;
} t;
Assume that the data types short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is _________bytes.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a storage class specifier in C?
auto
register
extern
static
volatile
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include <stdio.h>int main()
{
foo();
foo();
}
void foo()
{
int i = 11;
printf("%d ", i);
static int j = 12;
j = j + 1;
printf("%d\n", j);
}
11 12 11 12
11 13 11 14
11 12 11 13
Compile time error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
14 questions
ШС С++ Циклы
Quiz
•
Professional Development
15 questions
JavaScript
Quiz
•
Professional Development
10 questions
Basic Programming Kotlin
Quiz
•
Professional Development
10 questions
Modern Warships
Quiz
•
KG - Professional Dev...
11 questions
Послеолимпиадный квиз!
Quiz
•
Professional Development
15 questions
After Effects Hotkeys
Quiz
•
University - Professi...
15 questions
3.3-Dominios
Quiz
•
Professional Development
10 questions
1. Standard output, Data type and variable
Quiz
•
Professional Development
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Computers
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
