First Round

First Round

25 Qs

quiz-placeholder

Similar activities

Car logs

Car logs

3rd Grade

20 Qs

Mink 502, May 160

Mink 502, May 160

KG - University

20 Qs

IC 2 lesson 16 exam

IC 2 lesson 16 exam

KG - University

21 Qs

Shane - Analysis Chapters 5 and 6

Shane - Analysis Chapters 5 and 6

8th Grade

21 Qs

OIKONOMIA FINAL

OIKONOMIA FINAL

University

22 Qs

Investing - Unit Test

Investing - Unit Test

12th Grade

24 Qs

2º - Module 3 (A)

2º - Module 3 (A)

KG - University

20 Qs

First Round

First Round

Assessment

Quiz

others

Practice Problem

Hard

Created by

Prabhavika Pamarthi

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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 BLANK 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); }

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 BLANK 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); }

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?