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
15 questions
Milking Minds 2 17-01-24

Quiz
•
University
10 questions
C++ Assessment

Quiz
•
University
10 questions
Basic C++ Program Structures

Quiz
•
University
15 questions
Bootcamp Day 3 - Java Array

Quiz
•
University
10 questions
Java Control Flow statements

Quiz
•
University
15 questions
Java Bootcamp Day 4

Quiz
•
University
10 questions
C Programming - Basics 001

Quiz
•
University
12 questions
javaquizvivek

Quiz
•
University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade