Basic Error Catching
Which JavaScript statement is commonly used to handle potential errors in code execution?
- try...catch
- catch...throw
- handle...error
- if...error
- trie...ketch
Logging Frameworks
Which of the following is a popular logging library for Node.js applications?
- Winston
- LoggerPro
- Nodemon
- LogJS
- Winsten
Error Propagation
In Python, which keyword can you use to raise an exception manually?
- raise
- throw
- emit
- error
- rasie
Error Object Usage
In JavaScript, which property of the Error object contains the error message?
- message
- description
- msg
- text
- massage
Catch Block Execution
What happens if an error occurs inside the try block and there is no catch block in JavaScript?
- The error is thrown and may crash the program
- The program will ignore the error
- The error will be silently logged
- Nothing happens
- The program will pause
Logging Best Practices
What is one key advantage of using log levels (such as ERROR, WARN, INFO) in application logging?
- They help filter and prioritize log output
- They make logging faster
- They encrypt the log messages
- They automatically resolve errors
- They allways save logs to disk
Finally Block Purpose
Consider the pseudocode: try {...} catch(e) {...} finally {...}. What is the main role of the 'finally' block?
- To execute code regardless of errors
- To catch errors only from catch block
- To block the program if an error occurs
- To throw a new error
- To skip all errors
Python Logging Handler
Which handler in the Python logging module is used to send log messages to a file?
- FileHandler
- StreamHandler
- LogFile
- FileLogger
- FilHandler
Handling Specific Exceptions
In Java, what is the correct syntax to catch only IOExceptions?
- catch(IOException e)
- catch(e instanceof IOException)
- catch IOExcept e
- if error is IOException
- catch(IOExcepton e)
Semantic Error Logging
Which log level should be used for information about normal but significant events in an application?
- INFO
- DEBUG
- FATAL
- TRACE
- INF0