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
What will be the value of result?
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
Java Control Flow statements

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
7 questions
Quiz on Java Operators

Quiz
•
University
10 questions
Computer Languages

Quiz
•
KG - University
12 questions
HTML, JAVASCRIPT,XML

Quiz
•
University
12 questions
Array

Quiz
•
University
11 questions
Java Quiz 3 - Array

Quiz
•
University
10 questions
Weekly Contest #10 - TechXNinjas

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University