51

What is the output of print(10 % 4)??

a 2
b 2.5
c 1
d 0
Correct: (A) 2
52

Which symbol begins a single-line comment in Python??

a //
b #
c <!--
d **
Correct: (B) #
53

What values are generated by range(2, 6)??

a 2,3,4,5,6
b 2,3,4,5
c 1,2,3,4,5
d 3,4,5,6
Correct: (B) 2,3,4,5
54

What is the output of print(5 == 5)??

a 5
b False
c True
d Error
Correct: (C) True
55

Which SQL command is generally classified as DDL??

a INSERT
b UPDATE
c ALTER
d SELECT
Correct: (C) ALTER
56

Which key uniquely identifies each row and cannot contain NULL??

a Foreign Key
b Primary Key
c Alternate Key Only
d Non-key Attribute
Correct: (B) Primary Key
57

Which constraint maintains referential integrity between related tables??

a CHECK
b DEFAULT
c FOREIGN KEY
d NOT NULL
Correct: (C) FOREIGN KEY
58

Which SQL function returns the smallest integer greater than or equal to a number??

a FLOOR()
b ABS()
c ROUND()
d CEILING()
Correct: (D) CEILING()
59

Which relational algebra operation selects rows based on a condition??

a Projection
b Selection
c Rename
d Union
Correct: (B) Selection
60

Which normal form requires atomic attribute values in the introductory definition??

a 1NF
b 2NF
c 3NF
d BCNF
Correct: (A) 1NF