NANDHOO
.
Learning Paths
Dashboard
Sign In
Home
Dashboard
C Programming Engineering Mastery
Mathematical Operations
Quiz
Chapter Quiz: Mathematical Operations
Mathematical Operations Quiz
Complete this assessment with 100% score to master this chapter.
01
Which GCC flag is required to link the math library (<math.h>) on Linux?
-math
-lm
-std=c11
-O2
02
Which standard defines the representation of floating-point numbers in modern systems?
ISO 9001
ASCII
IEEE 754
UTF-8
03
Why is it dangerous to compare two floating-point numbers using '=='?
It is a syntax error
Precision issues mean 0.1 might be stored as 0.100000001
It makes the code run too slowly
Floating point numbers don't have a '==' operator
04
What happens if a signed integer exceeds its maximum value (INT_MAX)?
It stays at INT_MAX
The program crashes immediately
It 'wraps around' (Undefined Behavior)
It becomes 0
05
How do you seed the random number generator (rand()) with the current time?
rand(time(NULL))
srand(time(NULL))
seed(time)
set_random(clock())
Submit Answers
Back to Lesson
Next Chapter