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 Quizizz
12 questions
Python list starter

Quiz
•
10th Grade - University
10 questions
Java Control Flow statements

Quiz
•
University
15 questions
Java Quiz based on array

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
10 questions
C++ Assessment

Quiz
•
University
12 questions
Python: Strings and Lists

Quiz
•
University
15 questions
Code Craft : Java & Web Quiz"

Quiz
•
University
15 questions
Java Programming

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade