What will be the output of the following Python code?
l=[1, 0, 2, 0, 'hello', '', []]
list(filter(bool, l))
[1, 2, ‘hello’]
[1, 0, 2, ‘hello’, ”, []]
[1, 0, 2, 0, ‘hello’, ”, []]
Error
Quiz Recommendation System API Link - https://fresherbell-quiz-api.herokuapp.com/fresherbell_quiz_api
# | Quiz |
---|---|
1
Discuss
|
What will be the output of the following Python expression?
Solution |
2
Discuss
|
What will be the output of the following Python code?
Solution |
3
Discuss
|
Which of the following Boolean expressions is not logically equivalent to the other three?
Solution |
4
Discuss
|
What will be the output of the following Python code snippet?
Solution |
5
Discuss
|
What will be the value of x in the following Python expression, if the result of that expression is 2?
Solution |
6
Discuss
|
Bitwise _________ gives 1 if either of the bits is 1 and 0 when both of the bits are 1.
Solution |
7
Discuss
|
Which of the following expressions can be used to multiply a given number ‘a’ by 4?
Solution |
8
Discuss
|
What will be the output of the following Python code snippet?
Solution |
9
Discuss
|
Which among the following list of operators has the highest precedence?
Solution |
10
Discuss
|
What will be the output of the following Python code snippet?
Solution |
# | Quiz |
Copyright © 2020 Inovatik - All rights reserved