Question Bank

1899 approved questions from the community

Python uses 'interning' to optimize memory for small integers and certain strings by reusing the same object.

MEDIUM
TRUE FALSE
30s
Python
by Mohamed

What is the primary purpose of the Python Virtual Machine (PVM)?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

Which of the following are valid immutable built-in data types in Python? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Python
by Mohamed

Which of the following statements about generators are true? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
45s
Python
by Mohamed

What are the three requirements to create a closure in Python?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

When multiple decorators are stacked on a function, in what order are they applied?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

In Python, you can add a list as an element to a set.

MEDIUM
TRUE FALSE
25s
Python
by Mohamed

In Python's object creation process, which method is called first: __new__() or __init__()?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

Which methods are available in the child_process module? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
35s
Nodejs
by Mohamed

Which are valid ways to handle errors in Node.js? (Select all that apply)

MEDIUM
MULTIPLE CHOICE
40s
Nodejs
by Mohamed

What is Multer used for in Node.js?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What does npm shrinkwrap do?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What is the purpose of the Joi module?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What is the purpose of the Helmet module?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

Why should you separate Express 'app' and 'server'?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What is JWT (JSON Web Token) used for?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What is middleware in Express.js?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

What is the URL module used for in Node.js?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed

How does Node.js handle concurrency despite being single-threaded?

MEDIUM
SINGLE CHOICE
35s
Nodejs
by Mohamed

How does Node.js handle child threads?

MEDIUM
SINGLE CHOICE
30s
Nodejs
by Mohamed
PreviousPage 60 of 95Next