KLU- CLUSTER -6 DAY-5

KLU- CLUSTER -6 DAY-5

Professional Development

30 Qs

quiz-placeholder

Similar activities

Kiến thức cơ sở dữ liệu

Kiến thức cơ sở dữ liệu

Professional Development

26 Qs

KLU- CLUSTER -6 DAY-5

KLU- CLUSTER -6 DAY-5

Assessment

Quiz

English

Professional Development

Hard

Created by

CCC info@ccc.training

Used 1+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { struct num { int i, j, k, l; }; struct num n = {1, 2, 3}; printf("%d %d %d %d", i, j, k, l); }
1 2 3 0
1 2 3 4
1 2 3 garbage value
Compilation Error

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> int main() { int i = 2; enum numbers{num1 = i, num2 , num3}n; printf("%d %d %d\n", num1, num2, num3); }
Compilation Error
2 3 4
1 2 3
None of the above

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define int char void main() { int i = 65; printf("sizeof(i)=%d", sizeof(i)); }
sizeof(i)=2
sizeof(i)=1
Compiler Error
None of These

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define x 2 int main() { int i; i = x*x*x; printf("%d",i); return 0; }
8
x is not declared
No output
Garbage value

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define square(x) x*x int main() { int i; i = 64/square(4); printf("%d",i); return 0; }
16
Compilation error
4
64

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define i 10 int main() { #define i 20 printf("%d",i); return 0; }
Compilation error
20
10
Runtime error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h> #define clrscr() 50 int main() { clrscr(); printf("%d\n",clrscr()); return 0; }
Compilation error
Runtime error
50
none of the above

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?