Round 3-Tech Titans

Round 3-Tech Titans

University

20 Qs

quiz-placeholder

Similar activities

Round 2- Syntax ShowDown

Round 2- Syntax ShowDown

University

25 Qs

APTITUDE PRACTICE MOCK TEST-1@15-7-2020

APTITUDE PRACTICE MOCK TEST-1@15-7-2020

University

25 Qs

Electroblitz---Software

Electroblitz---Software

University

25 Qs

CRYPTERS-ROUND-2

CRYPTERS-ROUND-2

University

20 Qs

C Programming

C Programming

12th Grade - University

25 Qs

CodeMavarick

CodeMavarick

University

20 Qs

Basics of Programming with C

Basics of Programming with C

University

17 Qs

C PROGRAMMING

C PROGRAMMING

University

15 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?