Search Header Logo

Code Twisters Round 1 Demo

Authored by SUNIL RAJ B

Information Technology (IT)

University

Used 2+ times

Code Twisters Round 1 Demo
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

1. What is the format specifier for printing an integer in C?

%d

%c

%f

%s

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

2. Which operator is used to get the address of a variable?

*

&

-

@

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

3. Which of the following is a correct syntax to declare a pointer?

*int p;

int p*;

int *p;

int p;

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

4. Which function is used to read a string from standard input?

scanf()

fgets()

getch()

gets()

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

5. Which loop guarantees at least one execution of the loop body?

for loop

do-while loop

while loop

None of the Above

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

6. What will be the output of printf("%d", 5/2);?

2

2.5

3

0

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

7. What is the return type of the malloc() function?

int

char*

void*

float*

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?