CS1010 Lab 02

CS1010 Lab 02

University

10 Qs

quiz-placeholder

Similar activities

Prak MC

Prak MC

University

15 Qs

Quiz on Basics of C

Quiz on Basics of C

University

10 Qs

استعني علي الشقا بالله

استعني علي الشقا بالله

University

10 Qs

CHAPTER 5 ONLINE QUIZ

CHAPTER 5 ONLINE QUIZ

University

9 Qs

The AI Shield

The AI Shield

University

15 Qs

Unit 28 - Quiz #1

Unit 28 - Quiz #1

University

15 Qs

Quiz CodeIgniter 4

Quiz CodeIgniter 4

University

10 Qs

PROBLEM SOLVING USING R  UNIT I  MCQS

PROBLEM SOLVING USING R UNIT I MCQS

University

15 Qs

CS1010 Lab 02

CS1010 Lab 02

Assessment

Quiz

Computers

University

Easy

Created by

Gabriella Gloria

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the value of result?

1

0

Compilation Error

Undefined

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code? (printf %d means printing Decimal value)

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following logical expressions evaluates to true in C?

!(0 || 1)

0 && 1

1 && (0 || 1)

0 || (1 && 0)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the value of the logical expression?

True

False

Undefined

Null

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following expressions is equivalent to !(a && b) according to De Morgan's laws?

!a && !b

a || b

!a || !b

a && !b

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the value of result after executing the following code?

Compilation Error

0

5

7

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code? (printf is a output printing function in C)

Compilation Error

Undefined Behavior

Condition met

Condition not met

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?