C_Basic_MCQ_2

C_Basic_MCQ_2

University

8 Qs

quiz-placeholder

Similar activities

Operating System(2)

Operating System(2)

10th Grade - University

10 Qs

quiz

quiz

University

7 Qs

Multimedia Networking Quiz

Multimedia Networking Quiz

University

10 Qs

Review loops

Review loops

8th Grade - University

12 Qs

Understanding Digital Information Quiz

Understanding Digital Information Quiz

University

10 Qs

Agents Unleashed: Quiz on LLMs & AI Frontiers

Agents Unleashed: Quiz on LLMs & AI Frontiers

University

10 Qs

Problem Solving and Programming Design

Problem Solving and Programming Design

University

13 Qs

Introduction to Computer Science Concepts

Introduction to Computer Science Concepts

6th Grade - 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