Code Twisters Round One Batch -1

Code Twisters Round One Batch -1

University

30 Qs

quiz-placeholder

Similar activities

C-Programming

C-Programming

University

30 Qs

DEBUGGING

DEBUGGING

University

26 Qs

String in C Programming

String in C Programming

University

26 Qs

Arrays in Java

Arrays in Java

University

25 Qs

Decision and Case Control Statements in C

Decision and Case Control Statements in C

University

35 Qs

C Language Basics

C Language Basics

University

26 Qs

C Language Pre-Assessment

C Language Pre-Assessment

University

25 Qs

Neo Coding Round 1 Set 4

Neo Coding Round 1 Set 4

University

25 Qs

Code Twisters Round One Batch -1

Code Twisters Round One Batch -1

Assessment

Quiz

Computers

University

Hard

Created by

SUNIL RAJ B

Used 5+ times

FREE Resource

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

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?