Search Header Logo

Code Twisters Round One Batch -1

Authored by SUNIL RAJ B

Computers

University

Used 5+ times

Code Twisters Round One Batch -1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What is the output of the following code?

5

10

0

Compilation Error

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is not a valid storage class in C?

static

extern

mutable

register

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does malloc return when memory allocation fails?

-1

0

NULL

Garbage Value

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the size of an int data type on a 32-bit system?

2 bytes

4 bytes

8 bytes

Machine dependent

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What is the result of the following expression?

1

3

-1

Compilation error

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is true for a function returning a pointer?

The function returns the address of a variable.

The function returns a copy of a pointer.

The function must return a pointer to a global variable.

None of the above.

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image

What does the following code do?

Sets the value of ptr to 10

Generates a runtime error

Results in undefined behavior

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