First Round

First Round

25 Qs

quiz-placeholder

Similar activities

Duplicate of C1 Roadmap Unit 4

Duplicate of C1 Roadmap Unit 4

KG - University

20 Qs

S.C lecture 3 P.2 (Conflict Theories)

S.C lecture 3 P.2 (Conflict Theories)

KG - University

20 Qs

REGLAMENTO DEL BTH - 2023

REGLAMENTO DEL BTH - 2023

KG - University

21 Qs

6è. (Revisió continguts) CEIP Gabriel Janer Manila

6è. (Revisió continguts) CEIP Gabriel Janer Manila

KG - University

21 Qs

4ºD - Rocks and relief

4ºD - Rocks and relief

KG - University

23 Qs

PRE TEST BIMTEK RSPP

PRE TEST BIMTEK RSPP

KG - University

20 Qs

TANDING ULANG LOMBA SANDI - RENSCOUT 2024

TANDING ULANG LOMBA SANDI - RENSCOUT 2024

6th - 8th Grade

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

Create a free account and access millions of resources

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

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

Already have an account?