- A. Subroutines
- B. Function
- C. Definition
- D. Modules
Modules are a distinct syntactic block because they group related definitions and statements into a separate unit. Subroutines and functions are blocks inside programs, but in Python a module itself is treated as a separate syntactic unit. Definition is not a specific block type.
- A. Constructors
- B. recursive
- C. Destructors
- D. Nested
Constructors are functions that build or initialize an abstract data type (ADT) by creating its instances and setting up their initial state. Recursive, destructors, and nested are not the functions specifically used to build an ADT.
- A. LBEG
- B. LEGB
- C. GEBL
- D. GBLE
The LEGB rule is used to decide the order in which scopes are searched in Python: Local, Enclosing, Global, and Built-in. The other options are not standard scope-search rules.
- A. Random search
- B. Linear search
- C. Half-interval search
- D. Sequential search
Binary search is also called half-interval search because it repeatedly divides the search interval into two halves to locate the required element. It is not random, linear, or sequential search.
- A. Logical
- B. Ternary
- C. Assignment
- D. Relational
The ternary operator is also called the conditional operator because it evaluates one of two expressions based on a condition. Logical, assignment, and relational operators are different categories of operators.
- A. for
- B. do...while
- C. if...else
- D. while
Solution hidden
Log in to view solution →- A. finally
- B. define
- C. def
- D. return
Solution hidden
Log in to view solution →- A. positive or negative numbers
- B. positive numbers
- C. both positive and negative numbers
- D. negative numbers
Solution hidden
Log in to view solution →- A. ecneicS retupmoC
- B. Computer Science
- C. eniS eumC
- D. Cmue Sine
Solution hidden
Log in to view solution →- A. #
- B. &
- C. %
- D. .
Solution hidden
Log in to view solution →- A. Chend
- B. Chen
- C. Chand
- D. E F Codd
Solution hidden
Log in to view solution →- A. MODIFY
- B. SELECT
- C. ALTER
- D. ORDER BY
Solution hidden
Log in to view solution →- A. Modification
- B. Editing
- C. Alteration
- D. Appending
Solution hidden
Log in to view solution →- A. csv module
- B. OS module
- C. getopt module
- D. sys module
Solution hidden
Log in to view solution →- A. Where
- B. Distinct
- C. GroupBy
- D. Remove
Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →Solution hidden
Log in to view solution →