Search Header Logo

KLU- CLUSTER -6 DAY-5

Authored by CCC info@ccc.training

English

Professional Development

Used 1+ times

KLU- CLUSTER -6 DAY-5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?