struct {
short s[5];
union {
float y;
long z;
}u;
} t;
Super Dream Fit - Tech 1
Quiz
•
Other
•
Professional Development
•
Hard
Vengatesh vengatesh
Used 3+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
struct {
short s[5];
union {
float y;
long z;
}u;
} t;
22
14
18
10
Answer explanation
The char data type takes one byte in the memory.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
struct st
{
int x;
static int y;
};
int main()
{
printf("%d", sizeof(struct st));
return 0;
}
1
3
4
Compilation Time Error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Predict output of following program
int main()
{
int i;
int arr[5] = {1};
for (i = 0; i < 5; i++)
printf("%d ", arr[i]);
return 0;
}
1 followed by four garbage values
1 0 0 0 0
1 1 1 1 1
0 0 0 0 0
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
union test
{
int x;
char arr[8];
int y;
};
int main()
{
printf("%d", sizeof(union test));
return 0;
}
12
16
8
Compilation Error
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
#include<stdio.h>
int main()
{
int n;
for (n = 9; n!=0; n--)
printf("n = %d", n--);
return 0;
}
9 7 5 3 1
9 8 7 6 5 4 3 2 1
Infinite Loop
9 7 5 3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
int main()
{
char *ptr = "Genius";
printf("%c", &&*ptr);
return 0;
}
Compiler Error
Garbage Value
Runtime Error
G
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
int i = 0;
for (printf("1stn"); i < 2 && printf("2ndn"); ++i && printf("3rdn"))
{
printf("*n");
}
return 0;
}
1st 2nd * 3rd 2nd *
1st 2nd * 3rd 2nd * 3rd
1st 2nd 3rd * 2nd 3rd
1st 2nd 3rd * 1st 2nd 3rd
10 questions
ARRAYS IN C
Quiz
•
Professional Development
15 questions
Youth Fellowship
Quiz
•
Professional Development
15 questions
Quiz sur les tableaux en C
Quiz
•
Professional Development
10 questions
MOVIE DIALOGUES
Quiz
•
Professional Development
11 questions
Faculty Meeting Review
Quiz
•
Professional Development
8 questions
Blue House
Quiz
•
Professional Development
10 questions
Python Basics
Quiz
•
Professional Development
15 questions
22 EKİM SİVEK TANIŞMA TOPLANTISI
Quiz
•
Professional Development
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade