Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

Which module provides operating system-related utility methods?
A. system
B. env
C. os
D. platform
Direction: Choose the correct option

Q2.

How can you get the amount of free system memory using the `os` module?
A. os.free()
B. os.memory()
C. os.freemem()
D. os.totalmem()
Direction: Choose the correct option

Q3.

Which method returns the operating system platform (e.g., 'linux', 'darwin')?
A. os.release()
B. os.arch()
C. os.platform()
D. os.type()
Direction: Choose the correct option

Q4.

How do you get the number of CPU cores using the `os` module?
A. os.cpus().length
B. os.cpuCount()
C. os.cpus()
D. os.processors()
Direction: Choose the correct option

Q5.

What does `os.homedir()` return?
A. The temporary directory
B. The Node.js installation directory
C. The project root
D. The home directory of the current user