What will be the value of result?
CS1010 Lab 02

Quiz
•
Computers
•
University
•
Easy
Gabriella Gloria
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
1
0
Compilation Error
Undefined
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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
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
Similar Resources on Wayground
10 questions
Basic C++ Program Structures

Quiz
•
University
12 questions
Python: Strings and Lists

Quiz
•
University
12 questions
C Basics

Quiz
•
University
10 questions
Talent Next Java MCQ-1

Quiz
•
University
10 questions
CS1010 Lab 4

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
10 questions
C++ Assessment

Quiz
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade