Question Bank
1085 approved questions from the community
What is the recommended way to handle forms in React?
How do you write comments in JSX?
What is the purpose of React.Fragment?
Why does React use className instead of class attribute?
What does JSX stand for?
Which method is used to create a context in React?
React composition encourages developers to:
Which statement is correct about `props` vs `state`?
In a list render, what is the primary purpose of `key`?
Which description best matches React's role in frontend development?
React Fragments let you return multiple children without adding extra DOM wrappers.
What type does Python's 'None' value belong to?
What is the difference between a Python module and a Python package?
What are .pyc files in Python?
Can you use functions or classes as dictionary keys in Python?
What is the recommended way to merge two dictionaries in Python 3.5+?
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.
In Python, using two underscores before a variable name (e.g., __variable) makes it truly private and completely inaccessible from outside the class.
Decorators in Python heavily rely on the concept of closures.
What are valid uses of the single underscore '_' variable in Python? (Select all that apply)