Question Bank

246 approved questions from the community

What is the primary difference between a StatelessWidget and a StatefulWidget?

MEDIUM
MULTIPLE CHOICE
40s
by Mohamed

In Flutter, everything on the screen is represented as a widget.

EASY
TRUE FALSE
20s
Flutter
by Mohamed

Which programming language is used to develop Flutter apps?

EASY
MULTIPLE CHOICE
30s
Flutter
by Mohamed

What is Flutter?

EASY
MULTIPLE CHOICE
30s
Flutter
by Mohamed

How can you prevent a code block in a module from running when the module is imported by another script?

MEDIUM
MULTIPLE CHOICE
30s
Python
by Mohamed

A decorator is a higher-order function that can modify the behavior of another function without changing its source code.

MEDIUM
TRUE FALSE
30s
Python
by Mohamed

What does the '*args' syntax in a function definition do?

MEDIUM
MULTIPLE CHOICE
35s
Python
by Mohamed

Which of the following describes a key limitation of lambda functions in Python?

MEDIUM
MULTIPLE CHOICE
30s
Python
by Mohamed

According to the LEGB rule, what is the order of variable resolution in Python?

MEDIUM
MULTIPLE CHOICE
35s
Python
by Mohamed

What is the difference between the '==' and 'is' operators?

MEDIUM
MULTIPLE CHOICE
30s
Python
by Mohamed

Which method can be used to merge two lists into a dictionary mapping keys to values?

EASY
MULTIPLE CHOICE
30s
Python
by Mohamed

What is the primary difference in memory behavior between a list and a tuple?

MEDIUM
MULTIPLE CHOICE
40s
Python
by Mohamed

Which block in a try-except statement executes only if no exception was raised in the try block?

MEDIUM
MULTIPLE CHOICE
35s
Python
by Mohamed

In Python, modifying a mutable object (like a list) inside a function will affect the original object outside the function.

MEDIUM
TRUE FALSE
25s
Python
by Mohamed

Which of these is an example of an immutable data type in Python?

EASY
MULTIPLE CHOICE
30s
Python
by Mohamed

What are the primary mechanisms Python uses for garbage collection?

HARD
MULTIPLE CHOICE
45s
Python
by Mohamed

PEP 8 is the official style guide for Python code that recommends using 4 spaces per indentation level.

EASY
TRUE FALSE
20s
Python
by Mohamed

How is Python code executed by the CPython interpreter?

MEDIUM
MULTIPLE CHOICE
40s
Python
by Mohamed

What are the key features of Python?

EASY
MULTIPLE CHOICE
30s
Python
by Mohamed

What is the difference between 'mouseenter' and 'mouseover'?

MEDIUM
MULTIPLE CHOICE
35s
Javascript
by Mohamed
PreviousPage 9 of 13Next