First Round

First Round

25 Qs

quiz-placeholder

Similar activities

#8 Procedural programming

#8 Procedural programming

KG - University

20 Qs

Algoritmi e fondamenti del linguaggio C++

Algoritmi e fondamenti del linguaggio C++

10th Grade

21 Qs

C Programming (Pre test ET Sec B)

C Programming (Pre test ET Sec B)

Professional Development

25 Qs

Prelims for Software

Prelims for Software

KG - University

25 Qs

QP-LPS

QP-LPS

KG - University

25 Qs

Coding Contest Quiz

Coding Contest Quiz

KG - University

30 Qs

TECHNOSAV'24 -Codetronics Level 1

TECHNOSAV'24 -Codetronics Level 1

KG - University

30 Qs

CrackIT Round 1

CrackIT Round 1

KG - University

20 Qs

First Round

First Round

Assessment

Quiz

others

Hard

Created by

Prabhavika Pamarthi

Used 1+ times

FREE Resource

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

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?