Explanation: Python language is designed by a Dutch programmer Guido van Rossum in the Netherlands.
Which type of Programming does Python support?
Explanation: Python is an interpreted programming language, which supports object-oriented, structured, and functional programming.
Which of the following is the correct extension of the Python file?
Explanation: ‘.py’ is the correct extension of the Python file. Python programs can be written in any text editor. To save these programs we need to save in files with file extension ‘.py’.
Which of the following is used to define a block of code in Python language?
Explanation: In Python, to define a block of code we use indentation. Indentation refers to whitespaces at the beginning of the line.
Which keyword is used for function in Python language?
Explanation: def keyword is used for function in python language
Which of the following is not a core data type in Python programming?
Explanation: Class is a user-defined data type.
Which one of the following is not a keyword in Python language?
Explanation: eval can be used as a variable.
Which of the following statements is used to create an empty set in Python?
Explanation: { } creates a dictionary not a set. Only set() creates an empty set.
Which of the following is a Python tuple?
Explanation: Tuples are represented with round brackets.
Which of these about a set is not true?
Explanation: A set is a mutable data type with non-duplicate, unordered values, providing the usual mathematical set operations.
Which of the following functions is a built-in function in python?
Explanation: The function seed is a function which is present in the random module. The functions sqrt and factorial are a part of the math module. The print function is a built-in function which prints a value directly to the system output.
All keywords in Python are in _________
Explanation: True, False and None are capitalized while the others are in lower case.
Which of the following is the use of function in python?
Explanation: Functions are reusable pieces of programs. They allow you to give a name to a block of statements, allowing you to run that block using the specified name anywhere in your program and any number of times.
To open a file c:scores.txt for reading, we use _____________
Explanation: Execute help(open) to get more details.
To open a file c:scores.txt for appending data, we use ____________
Explanation: a is used to indicate that data is to be appended.
Which of the following is not a type of inheritance?
Explanation: Multiple, multi-level, single-level and hierarchical inheritance are all types of inheritance.
What does single-level inheritance mean?
Explanation: In single-level inheritance, there is a single subclass which inherits from a single superclass. So the class definition of the subclass will be: class B(A): where A is the superclass.
What arithmetic operators cannot be used with strings in Python?
Explanation: + is used to concatenate and * is used to multiply strings.
What is the maximum possible length of an identifier in Python?
Explanation: Identifiers can be of any length.
Which of the following operators is the correct option for power(ab)?
Explanation: The power operator in python is a**b, i.e., 2**3=8.
How many control statements python supports?
Explanation: In the Python Programming Language, there are three types of control statements. Break,Continue,Pass Statement
Suppose we have a set a = {10,9,8,7}, and we execute a.remove(14) what will happen ?
Explanation: since there is no such element in the set, so key error is raised.
When was python released
Explanation: It was created by Guido van Rossum, and first released on February 20, 1991.
choose the correct option with respect to python
Explanation: the values in the list are change while tuples cant change
what keyword is used to defined anonymous function
Explanation: lambda function is also called anonymous function.
Microsoft Office
Computer Introduction
Operating System Introduction
MS Office Tools and its uses
MS Word
MS Excel
MS Powerpoint
Double Entry System of Accounting
Types of Accounts
The Golden Rules of Accounting
Source Documents for Accounting
Recording of Business Transactions
The Accounting Equation
Recording of Transactions in Books of Original Entry/Journal