1.
_____________________________means arranging the elements in a specified order..
Explanation
Sorting refers to the process of arranging elements or data in a specific order, typically in ascending or descending order. It involves reordering the elements based on a certain criterion, such as numerical or alphabetical order. This process allows for easier access, organization, and analysis of the data.
2.
______________________________in Python are collection of some key value pairs
Explanation
Dictionaries in Python are a data structure that store key-value pairs. They allow you to associate a value with a unique key, making it easy to retrieve the value later on. This is useful when you want to store and retrieve data based on a specific identifier. Dictionaries are implemented as hash tables, which provide fast access to values based on their keys.
3.
_________________ returns count of tuple elements.
Explanation
Len(T) is a built-in function in Python that returns the count of elements in a tuple T. It can be used to determine the length or size of a tuple. The function takes the tuple as an argument and returns an integer value representing the number of elements in the tuple. Therefore, the given answer "Len(T)" is correct as it accurately describes the function that returns the count of tuple elements.
4.
To join two lists use _____________operator
Explanation
The correct answer is + because the + operator is used for concatenation in Python. It allows us to combine two lists by joining them end to end. This operator is commonly used for string concatenation as well.
5.
________________________________ is anything in the code that prevents a program from compiling and running correctly
Explanation
A bug and an error are both types of issues in code that can prevent a program from compiling and running correctly. A bug refers to a flaw or mistake in the code that causes unexpected behavior or incorrect output. An error, on the other hand, refers to a violation of the programming language's rules or syntax, which leads to the program failing to compile or run. Therefore, both bugs and errors can be considered as anything in the code that prevents a program from functioning correctly.
6.
A __________________ in Python iterates till its condition becomes false
Explanation
A while loop in Python iterates until its condition becomes false.
7.
An _______________________in Python is any valid contribution of operators,literals and variables.
Explanation
An expression in Python is any valid combination of operators, literals, and variables. It represents a value or a computation that can be evaluated. It can include arithmetic operations, comparison operations, logical operations, and more. Expressions are an essential part of programming as they allow us to manipulate and transform data in meaningful ways. They can be used in assignments, conditional statements, loops, and function calls to perform various tasks and calculations.
8.
__________________________________ are special symbols which perform some computation
Explanation
Operators are special symbols that perform some computation. They are used in programming languages to manipulate data and perform various operations such as arithmetic calculations, logical comparisons, and assignment of values. Operators can be used to combine variables, constants, and expressions to produce a desired result. They are an essential component of any programming language as they enable programmers to create complex algorithms and solve problems efficiently.
9.
______________ are similar to arrays.
Explanation
Lists are similar to arrays because they both store multiple values in a single variable. They can hold different data types, and the elements in both lists and arrays can be accessed using an index. Additionally, both lists and arrays can be modified by adding, removing, or changing elements. Therefore, lists and arrays share many similarities in terms of their functionality and usage.
10.
A ________________________ is ordered collection of items indexed by integers starting from zero.
Explanation
A sequence is an ordered collection of items indexed by integers starting from zero. In a sequence, each item is assigned a unique index, allowing for easy access and retrieval of specific elements. This ordered arrangement ensures that the items are organized in a specific pattern or sequence, making it easier to navigate and manipulate the collection.