0% found this document useful (0 votes)
34 views2 pages

Worksheet 2 Chapter 5

cs

Uploaded by

n73928957
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views2 pages

Worksheet 2 Chapter 5

cs

Uploaded by

n73928957
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PM SHRI KV PITAMPURA DELHI – 110034

SUBJECT: COMPUTER SCIENCE (083)


CLASS: XIC
CHAPTER-5 (PYTHON INTRODUCTION)
WORKSHEET - 2

(1) Which of the following does not belong to tokens in Python?


(A) Keyword (B) Statements
(C) Operators (D) Literals

(2) Identifier is a?
(A) Statement (B) Keyword
(C) User Defined words (D) Reserve Word

(3) Which of the following is a Literal?


(A) True (B) TRUE (C) true (D) All of above.

(4) Which of the following is invalid variable/identifier?


(A) A25 (B) in (C) _a56 (D) b21

(5) Which of the following is not an arithmetic operator?


(A) + (B) // (C) ** (D) +=

(6) Which of the following is a relational operator?


(A) + (B) <= (C) and (D) +=

(7) Which of the following is not an assignment operator?


(A) += (B) %= (C) = = (D) **=

(8) Which of the following is not a logical operator?


(A) and (B) Not (C) or (D) None of the above

(9) Which of the following is an identity operator?


(A) or (B) is (C) not (D) >=

(10) Which of the following is a membership operator?


(A) or (B) is (C) in (D) >=

(11) Python identifier cannot be started with?


(A) Alphabet (B) Special Symbol (C) Number (D) Both B and C

(12) Which of the following is not a keyword?


(A) if (B) and (C) in (D) For
(13) Variable belongs to
(A) Keywords (B) Identifier (C) Literals (D) Statements

(14) 3.14 is a
(A) Keywords (B) Identifier (C) Literals (D) Statements

(15) What will be the output of the following command?


>>> 39 > = 7
(A) 5 (B) 6 (C) True (D) False

(16) What will be the output of the following command?


>>> False or True
(A) 0 (B) Error (C) True (D) False

(17) What will be the output of the following command?


>>> not (True and False)
(A) 1 (B) Error (C) True (D) False

(18) What will be the output of the following command?


>>> 25 is 5
(A) 5 (B) 25 (C) True (D) False

(19) What is the difference between Keywords and Identifiers? Can Keywords be used as an
Identifier?

(20) What do you mean by Literals in Python? Explain with example different types of Literals
in Python?

(21) What is the use of Comments in Python? How can we give comments in Python?

(22) What all operators are available in Python?

(23) What is a data type? What all data types are available in Python?

(24) Differentiate between Implicit and Explicit type conversion in Python.

****************************************************************************************************************
Prepared by: Vijay Chawla, PGT(CS), PM SHRI KV Pitampura, Delhi

****************************************************************************************************************

You might also like