Question Bank

1085 approved questions from the community

What is the recommended way to handle forms in React?

EASY
SINGLE CHOICE
30s
React
by Mohamed

How do you write comments in JSX?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What is the purpose of React.Fragment?

EASY
SINGLE CHOICE
25s
React
by Mohamed

Why does React use className instead of class attribute?

EASY
SINGLE CHOICE
25s
React
by Mohamed

What does JSX stand for?

EASY
SINGLE CHOICE
20s
React
by Mohamed

Which method is used to create a context in React?

EASY
SINGLE CHOICE
25s
React
by Mohamed

React composition encourages developers to:

EASY
SINGLE CHOICE
30s
React
by Mohamed

Which statement is correct about `props` vs `state`?

EASY
SINGLE CHOICE
30s
React
by Mohamed

In a list render, what is the primary purpose of `key`?

EASY
SINGLE CHOICE
30s
React
by Mohamed

Which description best matches React's role in frontend development?

EASY
SINGLE CHOICE
30s
React
by Mohamed

React Fragments let you return multiple children without adding extra DOM wrappers.

EASY
TRUE FALSE
20s
React
by Mohamed

What type does Python's 'None' value belong to?

EASY
SINGLE CHOICE
25s
Python
by Mohamed

What is the difference between a Python module and a Python package?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

What are .pyc files in Python?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

Can you use functions or classes as dictionary keys in Python?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

What is the recommended way to merge two dictionaries in Python 3.5+?

EASY
SINGLE CHOICE
30s
Python
by Mohamed

In Python, when you assign a variable to another variable (e.g., b = a), you are creating a reference to the same object, not a copy.

EASY
TRUE FALSE
25s
Python
by Mohamed

In Python, using two underscores before a variable name (e.g., __variable) makes it truly private and completely inaccessible from outside the class.

EASY
TRUE FALSE
30s
Python
by Mohamed

Decorators in Python heavily rely on the concept of closures.

EASY
TRUE FALSE
25s
Python
by Mohamed

What are valid uses of the single underscore '_' variable in Python? (Select all that apply)

EASY
MULTIPLE CHOICE
40s
Python
by Mohamed
PreviousPage 34 of 55Next