W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
14 questions for “Path & OS Modules”
Found in 1 field. Select a question to see its full answer.
Matching topics
Node.js
Path
&
OS
Modules
5
Node.js
Core Node.js
Modules
1
Information Technology
14 questions in 3 technologies
#
Question
Technology
Topic
Level
1
How do
path
.p
os
ix and
path
.win32 let you work with a specific
path
format regardless of the operating system Node.js is actually running on?
Node.js › Path & OS Modules
Node.js
Path
&
OS
Modules
Intermediate
2
What does
path
.parse() and
path
.format() do, and how are they useful for decomp
os
ing and reconstructing file
path
s?
Node.js › Path & OS Modules
Node.js
Path
&
OS
Modules
Beginner
3
What is the difference between
path
.join() and
path
.resolve(), and when would you use each?
Node.js › Path & OS Modules
Node.js
Path
&
OS
Modules
Beginner
4
How would you use the node:
os
module to make a script's behavior adapt correctly acr
os
s different operating systems?
Node.js › Path & OS Modules
Node.js
Path
&
OS
Modules
Intermediate
5
What is
path
traversal, and how does the
path
module (specifically
path
.normalize() and careful
path
.join() usage) help prevent it as a security vulnerability?
Node.js › Path & OS Modules
Node.js
Path
&
OS
Modules
Advanced
6
What does the node:
os
module provide, and what are some commonly used functions from it?
Node.js › Core Node.js Modules
Node.js
Core Node.js
Modules
Beginner
7
How would you diagn
os
e and resolve a 'split package' problem when using JPMS, where the same package is defined acr
os
s two different
modules
on the module
path
?
Java › Class Loading & Bytecode Verification
Java
Class Loading & Bytecode Verification
Advanced
8
How do you use
path
lib.
Path
for modern, object-oriented file
path
manipulation instead of
os
.
path
's string-based functions?
Python › File I/O & Context Managers
Python
File I/O & Context Managers
Intermediate
9
What is the difference between an absolute
path
and a relative
path
in Node.js, and how does __dirname help resolve
path
s reliably?
Node.js › File System & File Processing
Node.js
File System & File Processing
Beginner
10
How do you write cr
os
s-platform shell scripts in Node.js that work identically on Windows, mac
OS
, and Linux?
Node.js › CLI Tools & Scripting with Node.js
Node.js
CLI Tools & Scripting with Node.js
Intermediate
Show all 14 questions in Information Technology