On Python | More Q&A Click Here
# | Question | Options | Answer |
---|---|---|---|
1 | Using the pack manager, how you can you put the components in a container in the same row? | Component.pack(side=LEFT) | |
2 | Which can be an Identifier among them in Python? | _xy1 | |
3 | Choose the correct function to get the character from ASCII number | chr(number) | |
4 | Strings are immutable in Python, which means a string cannot be modified. | True | |
5 | Python does not support a character type a single character is treated as strings of length one. | True | |
6 | Which method should I use to convert String "welcome to the beautiful world of python" to "Welcome To The Beautiful World Of Python" | title() | |
7 | ________ is an object-oriented programming language. | All the above | |
8 | Python is compiled language. True or False? | False | |
9 | What is used to define a block of code (body of loop, function etc.) in Python? | Indentation | |
10 | ________ is interpreted | Python | |
11 | What is a correct syntax to output "Hello World" in Python? | print("Hello World") | |
12 | Which of the following statements is true? | All of the above. | |
13 | Standard Python implementation can import libraries written in which of the following languages? | C/C++ | |
14 | Which of the following statements is true? | Python 3 is a newer version, but it is not backward compatible with Python 2. | |
15 | Python syntax is case-sensitive | True | |
16 | A ___________ error does not cause the program to abort, but produces incorrect results. | logical | |
17 | What does the expression string1 + string2 do? | Concatenates string1 and string2. | |
18 | Which of these should you include in order to pass variables to a script? | from sys import argv | |
19 | Is it possible to link a Python program to code written in C? | Yes, the C code can be in a form of a dynamically or a statically linked library. | |
20 | To run python script file named test.py, use the command | python test.py | |
21 | What is the correct file extension for Python files? | .py | |
22 | Is it possible to check for more than one error in one except line? | Yes, if the exception types are enclosed in parentheses. | |
23 | What does REPL mean in Python? | Read, Evaluate, Print, Loop |