0% found this document useful (0 votes)
8 views

Chapter5 - Variables and Operators-12

Chapter 5 covers Python variables and operators, including questions about the language's creator, syntax, and various operators. It includes sections for book back questions, PTA (Practical Training Assessment) questions, and public/government exam questions, addressing topics like tokens, literals, and operator types. The chapter also emphasizes the importance of understanding Python's syntax and functionality through practical examples and definitions.

Uploaded by

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

Chapter5 - Variables and Operators-12

Chapter 5 covers Python variables and operators, including questions about the language's creator, syntax, and various operators. It includes sections for book back questions, PTA (Practical Training Assessment) questions, and public/government exam questions, addressing topics like tokens, literals, and operator types. The chapter also emphasizes the importance of understanding Python's syntax and functionality through practical examples and definitions.

Uploaded by

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

CHAPTER 5 – PYTHON - VARIABLES AND OPERATORS

I. BOOK BACK QUESTIONS:


1. Who developed Python?
a) Ritchie b) Guido Van Rossum c) Bill Gates d) Sunder
Pichai
2. The Python prompt indicates that Interpreter is ready to accept instruction.
a) >>> b) <<< c) # d) <<
3. Which of the following shortcut is used to create new Python Program?
a) Ctrl + C b) Ctrl + F c) Ctrl + B d) Ctrl + N
4. Which of the following character is used to give comments in Python Program?
a) # b) & c) @ d) $
5. This symbol is used to print more than one item on a single line.
a) Semicolon (:) b) Dollor ($) c) comma(,) d) Colon (:)
6. Which of the following is not a token?
a) Interpreter b) Identifiers c) Keyword d) Operators
7. Which of the following is not a Keyword in Python?
a) break b) while c) continue d) operators
8. Which operator is also called as Comparative operator?
a) Arithmetic b) Relational c) Logical d)
Assignment
9. Which of the following is not Logical operator?
a) and b) or c) not d)
Assignment
10. Which operator is also called as Conditional operator?
a) Ternary b) Relational c) Logical d)
Assignment
II. PTA
1. What will be the value of X from the following code
snippet? (PTA - 2) A, B = 10, 3
X = A if (A /
B = = 3) else
B print (x)
a) 3 b) 10 c) True d) False
2. In how many ways programs can be written in Python? (PTA - 3)
a) 2 b)3 c) 4 d) 5
3. Which of the following is the valid Python program filename? (PTA - 3)
a) pycpp.py b) pycpp.cpp c) pycpp.c d) pycpp.is
4. Which of the following statement (s) is not correct? (PTA - 4)
1) Python is a general purpose programming language which can be used for both scientific
and non scientific programming
2) Python is a platform independent programming language.
3) The programs written in Python are difficult to read and understand. (PTA - 4)
a) statement (1) only b) statement (1) and (2) c) statement (3) only d) All
statements
5. The floor division operator in Python. ( PTA - 5)
a) / b) % c) %% d) //
III. ADDITIONAL QUESTIONS:
1. The multiline comments will be enclosed within a set of
a) / b) # c) $ d) &
2. Python breaks each logical line into a sequence of elementary lexical components known as
a) Tokens b) Block c) Bit d)
None of these
3. escape sequence character is used to represent new line.
a) \t b) \n c) \r d) All
the above
4. Which one of the following are a token?
a) Print ( ) b) input ( ) c) Literals d)
Space
5. The value of an operator used is called
a) Operands b) Arithmetic c) Relational
d)Logical
6. The relational operator is also called as
a) Assignment b) Arithmeti c) Comparative d)
Logical
7. Which of the following are Literals?
a) Numeric b) String c) Boolean d) All
of these
IV. PUBLIC & GOVERNMENT EXAM QUESTIONS:
1. Expand IDLE (M - 20)
a) Integrated Design Learning Environment b) Insert Development Learning
Environment
c) Integrated Develop Learning Environment d) Integrated Development Learning
Environment
2. Which key is pressed to execute python script? (Sep-20)
a) F5 b) F2 c) F1 d) F3
3. Extension of python file is (MQP - 19)
a) .pyt b) .tt c) .odm d) .py

I. BOOK BACK QUESTIONS:


1. What are the different modes that can be used to test Python Program?
2. Write short notes on Tokens.
3. What are the different operators that can be used in Python?
4. What is a literal? Explain the types of literals?
5. Write short notes on Exponent data?
II. PTA:
1. What are keywords in Python? (PTA - 3)
2. What are the key features of python? (PTA - 3)
III. GOVERNMENT QUESTIONS:
1. Define operator and operand. (MQP - 19)
2. Write short notes on Tokens. (Sep - 20)
I. BOOK BACK QUESTIONS:
1. Write short notes on Arithmetic operator with examples.
2. What are the assignment operators that can be used in Python?
3. Explain Ternary operator with examples.
4. Write short notes on Escape sequences with examples.
5. What are string literals? Explain.
II. PTA:
1. What are the rules to be followed while creating an identifier in Python? (PTA - 2)
III. GOVERNMENT QUESTIONS:
1. Explain Ternary operator with examples. (Mar - 20)

I. BOOK BACK QUESTIONS:


1. Describe in detail the procedures Script mode programming.
2. Explain input ( ) and print ( ) functions with examples.
3. Discuss in detail about Tokens in Python.
II. PTA:
1. Explain the different operators in Python. (PTA - 1)
III. GOVERNMENT QUESTIONS:
1. Explain the different operators in Python. (Hy-19)
2. Explain Input( ) and print( ) functions with eg. (Mar - 20)
3. Explain Python data types with examples. (Sep - 20)

You might also like