Search Header Logo

competitive programming

Authored by Abhishek Swami

Computers

12th Grade

Used 32+ times

competitive programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

void main()

{ int x = 5;

if (x < 1)

printf("hello");

if (x == 5)

printf("hi");

else

printf("no");

}

hi

hello

no

hey !

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

#include <stdio.h>

int x;

void main()

{ if (x)

printf("hi");

else

printf("how are u");

}

hi

how are u

error

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not an arithmetic operation?

a * = 10;

a / = 10;

a ! = 10;

a % = 10;

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following data type will throw an error on modulus operation(%)?

char

short

int

float

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type can be stored in register?

int

long

float

All of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Register variables reside in ________

stack

registers

heap

main memory

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following C code?

#include <stdio.h>

register int x;

void main()

{

printf("%d", x);

}

varies

0

junk value

compile time error

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?