Round 3-Tech Titans

Round 3-Tech Titans

University

20 Qs

quiz-placeholder

Similar activities

Revisão de Programação Java

Revisão de Programação Java

9th Grade - University

15 Qs

Luyện tập 1

Luyện tập 1

University

20 Qs

CodeQuest-R1

CodeQuest-R1

University

20 Qs

If else Quiz

If else Quiz

University

18 Qs

Structures and Union

Structures and Union

University

15 Qs

Test de evaluación para prácticas del Summer Camp

Test de evaluación para prácticas del Summer Camp

University

20 Qs

All About Aviation!!!!!!!!!!!!

All About Aviation!!!!!!!!!!!!

2nd Grade - Professional Development

20 Qs

CODEATHON'22

CODEATHON'22

University

20 Qs

Round 3-Tech Titans

Round 3-Tech Titans

Assessment

Quiz

Other

University

Hard

Created by

Tharun Kumar

Used 3+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

int a = 5, b = 10;

printf("%d", a+++b);

return 0;

}

15

35

Compile error

45

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

void fun(int n)

{

if(n == 0)

return;

fun(n-1);

printf("%d ", n);

}

int main()

{

fun(3);

return 0;

}

3 2 1

1 2 3

0 1 2 3

3 2

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

int a = 5;

printf("%d %d %d", a, a<<1, a>>1);

return 0;

}

5 10 2

5 2 10

5 5 5

Compile error

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

int a = 5;

printf("%d", sizeof(a++));

printf("%d", a);

return 0;

}

4 5

4 6

8 5

Compile error

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

int x = 0;

if(x = 10)

printf("Yes");

else printf("No");

return 0;

}

Yes

No

Compile error

Runtime error

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

int a = 10;

if(a++ > 10)

printf("A");

else if(a++ > 10)

printf("B");

else

printf("C");

return 0;

}

A

B

C

Compile error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

#include<stdio.h>

int main()

{

char str[] = "abc";

printf("%c", 2[str]);

return 0;

}

a

b

c

Compile error

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?