C_Basic_MCQ_2

C_Basic_MCQ_2

University

8 Qs

quiz-placeholder

Similar activities

PYTHON APTITUDE

PYTHON APTITUDE

University

12 Qs

Python Programming Competition

Python Programming Competition

University

12 Qs

HTML and CSS Test-1

HTML and CSS Test-1

University

10 Qs

Condition Programming Quiz

Condition Programming Quiz

1st Grade - University

9 Qs

Introduction & Basic Program Structure

Introduction & Basic Program Structure

University

10 Qs

MIS-RODOCODO

MIS-RODOCODO

1st Grade - University

8 Qs

AverageRound

AverageRound

University

10 Qs

Backend Development

Backend Development

University

10 Qs

C_Basic_MCQ_2

C_Basic_MCQ_2

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

Dinesh Kushwaha

Used 2+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

char

short

int

float

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following C code?

15

16

15.6

10

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following C code?

Syntax error

1

10

5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the final value of x in the following C code?

3.75

Depends on compiler

24

3

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What will be the output of the following C code?

Value of x is 1

Value of x is 2

Value of x is 3

Compile time error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of logical or relational expression in C?

True or False

0 or 1

0 if an expression is false and any positive number if an expression is true

None of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the size of an int data type?

4 Bytes

8 Bytes

Depends on the system/compiler

Cannot be determined

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt


What is the result of the logical expression (1 && 0)?

0

1

ture

false