Search Header Logo

First Round

Authored by Utkarsh haye haye

Fun

1st Grade

Used 1+ times

First Round
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following operators has right-to-left associativity?

+=
>=
==
&&

2.

FILL IN THE BLANKS QUESTION

45 sec • 2 pts

What will be the output of the code: int main (void) { enum{RED=20,BLUE,YELLOW=21,GREEN}; printf(“GREEN=%d”,GREEN); }

(a)  

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the statement print? int main(void){ printf("%u",sizeof(void *)); }

Runtime error1
0
Compilation Error
8

4.

MULTIPLE CHOICE QUESTION

2 mins • 3 pts

What will be the output of the code: int f(int n){ static int i=1; return n+i--; } int main(){ char ch[]="CSE"; int n=strlen(ch),i=0; for(f(n);i=f(n);i++){ printf("%s\t",ch+i-1); } }

E SE CSE
C CS CSE
Compilation error
S SE SEC

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the default value of Automatic storage class (variable auto)?

0
Garbage value
-1
No default values

6.

MULTIPLE CHOICE QUESTION

45 sec • 2 pts

What does the line of code mean? char (*func)(int)

func is a pointer to a function that returns char and take a parameter as integer.
func is a pointer to a function that returns integer and take a parameter as char.
func is a pointer to character that converts it’s type to int.

7.

FILL IN THE BLANKS QUESTION

1 min • 2 pts

Write the output of the code: void func2(int *p,int m){ m=m+5; *p=*p+m; } int main(){ int i=5,j=10; func2(&i,j); printf("%d",i+j); }

(a)  

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

Already have an account?