Quiz
Operators and Expressions
This quiz has a time limit, so it opens in the usual player.
Questions in this quiz (25)
1How many types of Operators are there in Python ?
- A7
- B8
- C6
- D5
2Which of the following is/are Arithmetic Operators ?
- A+
- B>>
- C**
- D%
3Which of the following is not a Relational Operator ?
- A!=
- B==
- C=>
- D<=
4The two unary operators are [blank_start]_____[blank_end] and [blank_start]_____[blank_end] .
- A+
- B-
5Which of the following options contain only Bitwise operators ?
- A>> , << , ^ , **
- B>> , >= , & , <<
- C<< , >> , & , ~
- D<< , & , | , ^
6What is the function of << operator ?
- Ashift number of bits towards right
- Bshift number of bits towards center
- Cshift number of bits towards left
- Dmake true value false
7The value of 0 >> 2 is 2.
- ATrue
- BFalse
8Evaluate the expression:
2+3**2-4/2- A9.0
- B16.0
- C3.0
- D4.5
9What is the Value of 4 >> 1 ?
- A2
- B3
- C0
- D4
10How many Logical operators are there in Python?
- A2
- B3
- C4
- D1
11in and not in are [blank_start]_________[blank_end] operators.
- AMembership
12"not is" is a Membership Operator.
- ATrue
- BFalse
13+ has higher precedence than -
- ATrue
- BFalse
14Which has the highest precedence among the following?
- A/
- Bunary +
- C+
- D==
15Which of the following is True ?
- A6**2 = 12
- B6//4 = 1.5
- C6/4 = 1
- D6/2**2 = 1.5
16True and True
- ATrue
- BFalse
17False and True
- ATrue
- BFalse
18True or False
- ATrue
- BFalse
19(1 < 2) and (1 == 1)
- ATrue
- BFalse
20(20 and 4) or (20 and 0) evaluates to 4
- ATrue
- BFalse
21The value of 4 ^ 2 is 9
- ATrue
- BFalse
22Value of 2 ^ 3 is
- A1
- B14
- C2
- D3
23Value of 4 & 6 is
- A4
- B6
- C2
- D12
24Evaluate:
(4+2)//2+3**1-10+6/3- A-2
- B-2.0
- C-1
- D2.0
25Evaluate:
(3>>1>>4)+6//2-4- A-1
- B-1.0
- C1
- D1.0
Information
- Description
- Coding Python Quiz on Operators and Expressions, created by PathaPadha Support on 26/10/2020.
- Author
- PathaPadha Support
- Language
- English
- Views
- 1
- Tags
- Rating
- No ratings yet Rate this quiz