Question
You have a Python list of fruits and want to extract a specific sub-list using slicing. Complete the missing part of the code to obtain the sub-list `['banana', 'cherry']`. fruits = ['apple', 'banana', 'cherry', 'date', 'elderberry'] # Extract the sub-list ['banana', 'cherry'] selected_fruits = fruits[___] print(selected_fruits) Which of the following options correctly completes the code to produce `['banana', 'cherry']`?
More IT DBMS Questions
- What is the purpose of 'indexing' in a database?
- A programmer is trying to debug an issue where an `ArrayList` (or equivalent dynamic array) in their Java/Python code unexpectedly throws an `IndexOutOfBo...
- Which normal form in relational database design specifically eliminates transitive dependency of non-key attributes on the primary key?
- A relation is in 2NF if:
- A program needs to process elements from a `Queue` until it becomes empty. Which control flow structure is most suitable for this task?
- A designer wants to remove a transitive dependency of a non-key attribute on a candidate key. Which normal form directly addresses this?
- Relations R and S share the same schema, with R having 50 tuples and S having 50 tuples. If R and S share exactly 20 common tuples, how many tuples will th...
- A relation R(A, B, C, D) has functional dependencies A -> B, A -> C, and C -> D, with A as the only candidate key. What is the highest normal form satisfie...
- What does normalization in DBMS achieve?
- Which normal form removes partial dependency?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)