Multiple choice quiz about Python - Part 8
- Question 1: Which of the following functions only accepts integers as parameters?
- ord ()
- min ()
- chr ()
any ()
-
- Question 2: Suppose there is a list: l = [2,3,4]. If you want to print this list in reverse order, which of the following methods should you use?
- reverse (l)
- list (reverse [(l)])
- reversed (l)
- list (reversed (l))
-
- Question 3: What is the output of the following function?
float(' -12345n')
- -12345.0 (5 spaces before the number)
- -12345.0
- Lỗi
- -12345.000000000 . (infinite decimal number)
-
- Question 4: What is the result of the function shown below?
ord(65)
ord('A')
- A
65 - Lỗi
65 - A
Lỗi - Lỗi
Lỗi
-
- Question 5: What is the result of the following function?
float('-infinity')
float('inf')
- -Inf
inf - –Infinity
inf - Lỗi
Lỗi - Lỗi
Junk value
-
- Question 6: Which of the following functions will not cause errors when not passing parameters to it?
- min ()
- divmod ()
- all ()
- float ()
-
- Question 7: What is the result of the following expression?
hex(15)
- f
- 0xF
- 0Xf
- 0xf
-
- Question 8: Which of the following functions does not cause errors?
- ord ()
- ord ('')
- ord (")
- ord ("")
-
- Question 9: What is the result of the function shown below?
len(["hello",2, 4, 6])
- 4
- 3
- Lỗi
- 6
-
- Question 10: What is the result of the following function?
oct(7)
oct('7')
- Lỗi
07 - 07
Lỗi - 0o7
Lỗi - 07
0o7
-
5 ★ | 1 Vote
You should read it
- Multiple choice quiz about Python - Part 3
- Multiple choice quiz about Python - Part 7
- Multiple choice quiz about Python - Part 5
- Multiple choice quiz about Python - Part 6
- Multiple choice quiz about Python - Part 2
- Multiple choice test on Python - Part 11
- Multiple choice quiz about Python - Part 9
- Multiple choice quiz about Python - Part 1
May be interested
- Multiple choice quiz about Python - Part 9how much do you know about python functions? keep testing your knowledge with quantrimang through the following multiple choice questions!
- Check your net addiction levelthis is a simple test that helps you determine if your internet use is too much and assess the level of internet addiction, or use network services.
- Multiple choice quiz about Python - Part 10following the previous test, part 10 returned with the python function. let's try with quantrimang to try the 10 questions below.
- What do you know about NoSQL Database?nosql was born as a patch for the shortcomings and shortcomings of the rdbms relational data model. so how much do you know about nosql? try your knowledge with quantrimang through the following multiple choice questions!
- Multiple choice test on Python - Part 11python's multiple-choice questions series help you update and review useful knowledge for your work and learn your python programming language.
- eQuiz - Multiple choice test on OSI Model - part 1the osi model knowledge test, in total, there will be 12 questions with no time limit for answering each sentence.