Multiple choice quiz about Python - Part 7
- Question 1: What is the result of the following expression?
chr('97')
chr(97)
- a
Lỗi - 'a'
a - Lỗi
a - Lỗi
Lỗi
-
- Question 2: What is the result of the following function?
complex(1+2j)
- Lỗi
- first
- 2j
- 1 + 2j
-
- Question 3: Where are the results of complex () function in the answers below?
- 0j
- 0 + 0j
- 0
- Lỗi
-
- Question 4: Divmod function (a, b) where 'a' and 'b' are integers interpreted as:
- (a% b, a // b)
- (a // b, a% b)
- (a // b, a * b)
- (a / b, a% b)
-
- Question 5: What is the output of the representation function below?
divmod(10.5,5)
divmod(2.4,1.2)
- (2.00, 0.50)
(2.00, 0.00) - (2, 0.5)
(2, 0) - (2.0, 0.5)
(2.0, 0.0) - (2, 0.5)
(2)
-
- Question 6: Is the following statement true or false?The expression complex ('2-3j') is valid and complex ('2 - 3j') is the wrong syntax of the complex () function.
- It's correct
- False
-
- Question 7: What is the result of the function shown below?
list(enumerate([2, 3]))
- Lỗi
- [(1, 2), (2, 3)]
- [(0, 2), (1, 3)]
- [(2, 3)]
-
- Question 8: What is the result of the function shown below?
x=3
eval('x^2')
- Lỗi
- first
- 9
- 6
-
- Question 9: What is the output of the following function?
float('1e-003')
float('2e+003')
- 3.00
300 - 0.001
2000.0 - 0.001
200 - Lỗi
2003
-
- Question 10: Which of the following functions does not accept iterable as a parameter?
- enumerate ()
- all ()
- chr ()
- max ()
-
5 ★ | 1 Vote
You should read it
- Multiple choice test on Python - Part 11
- Multiple choice quiz about Python - Part 2
- Multiple choice quiz about Python - Part 10
- Multiple choice quiz about Python - Part 5
- Multiple choice quiz about Python - Part 1
- Multiple choice quiz about Python - Part 6
- Multiple choice quiz about Python - Part 8
- Multiple choice quiz about Python - Part 9
May be interested
- eQuiz - VB.NET testing test - Part 2in the previous article, i showed you the first part of the vb.net test. and this time, we will continue with part 2 of this popular quiz series on programming languages, the whole test will have 15 questions with unlimited response time.
- eQuiz - Multiple choice test on JDBC - Part 1in the quiz below, we will introduce you to part 1 of the jdbc basic knowledge test series with 15 questions.
- eQuiz - Quiz on Core Java - Part 2in the quiz below, you will be able to try out part 2 of the series related to core java - one of the most popular programming languages today. in total, the test will have 15 questions in the form of multiple choice, with an unlimited response time ...
- JAVA P8 test quizif you are interested in learning about the java programming language, the following quiz of network administrator will provide you with a lot of useful knowledge for your learning.
- Testing of computer architecture - Part 2next to this topic, in the quiz below will be more challenging, let's start.
- What do you know about iPhone? Doing this test will be clear (part 2)do multiple-choice questions about iphone in part 1 make it difficult for you? try the next 10 questions about the iphone.
- Multiple choice questions about Photoshop - Part 1a set of multiple-choice questions about photoshop for you to try and understand.
- [QUIZ] Test your understanding of SQL - Part 5multiple-choice questions on sql help you familiarize and review useful knowledge for work and learning sql language.
- What do you know about iPhone? Doing this test will be clear (part 1)as a smartphone user, maybe also holding the iphone in your hand, what do you really know about this apple pet's baby? let's take the quiz below to answer that question.
- [QUIZ] Test your understanding of SQL - Part 4let's try our knowledge with multiple choice questions about sql database management system.