0% found this document useful (0 votes)
21 views3 pages

Lesson 5

Uploaded by

padmashinipmhss
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)
21 views3 pages

Lesson 5

Uploaded by

padmashinipmhss
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/ 3

CHAPTER -5

PYTHON OPERATORS AND VARIABLES


1. Who invented Python?

1. Guido Van Rossum 2. Dennis Ritchie 3. Bjarne Stourstroup 4. Rick Mascitti

2. Python was released in the year

1. 1990 2. 1991 3. 1992 4. 1994

3. Expand IDLE

1. Integrated development learning environment 2. Integrated development learning education

3. Integrated discipline learning environment 4. Integrated department learning environment

4. Python command prompt (>>>) indicates

1. Compiler is ready to execute our code 2. Interpreter is ready to execute our code

3. Low level language is ready to execute 4. Middle level language is ready to execute

5. What are the two types of modes in python?

1. Inter discipline mode & Script mode 2. Interpreter mode & Script mode

3. Inter discipline mode & Simple mode 4. Inter calculation & Scientific mode

6. ___________________ is a text file containing the python statements

1. Script 2. Interactive 3. Interdiscipline 4. Simple

7. ________________ function helps to enter data at run time by the user

1. input() 2. Output() 3. Print() 4. Display()

8. __________________ function is used to display the result of program on screen

1. output() 2. Input() 3. Print() 4. Display()

9. _____________________ is used as a separator

1. semicolon 2. Comma 3. Colon 4. Equals to

10.Comments begins with _____________ symbol

1. @ 2. # 3. . 4. :

11. Python uses whitespace such as ___________ and ___________ to define program blocks

1. Spaces 2. Tabs 3. Special character 4. Both (1) & (2)

J.A.MANJULAH.,M.Sc.,M.Phil.,B.Ed(CS).,
12. The smallest individual unit in program is known as _______________

1. Identifiers 2. Tokens 3. Keywords 4. Literals

13. _________________ are reserved words which can be understand language compiler

1. Literals 2. Identifier 3. Keywords 4. Datatype

14. ________________ is used to identify a variable

1. Variables 2. Identifier 3. Modules 4. Classes

15. ____________________ is used to represent computations.

1. Operators 2. Operands 3. Arithmetic operator 4. Relational

16. ___________________ is mathematical operator that take two operands and performs calculation

1. Relational 2. Logical 3. Arithmetic 4. Bitwise

17. ____________________ is also called as comparison operator

1. Arithmetic 2. Relational 3. Logical 4. Bitwise

18. ___________ operators is used to perform logical operations

1. Logical 2. Arithmetic 3. Relational 4. Assignment

19. __________________ is a assignment operator

1. + 2. - 3. * 4. =

20. Ternary operator is also known as __________________

1. Logical 2. Conditional 3. Relational 4. Arithmetic

21. Python uses the symbols and symbol combinations ___________________

1. List 2. Tuples 3. Delimiters 4. Expressions

22. Literals are given in _____________

1. Variable 2. Datatype 3. String 4. Conditional statement

23. String literal is a sequence of characters surrounded by ________________

1. Characters 2. Single quotes 3. Character 4. Comments

24. A Boolean literals have two values _________

1. True 2. False 3. 1 4. Both (1)&(2)

25. \n is used to represent ________________________

1. New line 2. Tab 3. Carriage return 4. Form feed

J.A.MANJULAH.,M.Sc.,M.Phil.,B.Ed(CS).,
26. Fundamental data types in python are _____________

1. Number 2. String 3. Boolean, tuples 4. All of these

27. A integer data can be represented by

1. Decimal, Octal, Hexadecimal 2. Binary

3. Octal 4. None of these

28. A floating point data are represented by sequence of ______________ digits

1. Decimal 2. Integer 3. Boolean 4. String

29. Which of the following shortcut is used to create new python program?

1. Ctrl+N 2. Ctrl+O 3. Ctrl+P 4. Ctrl+A

30. Which of the following is not Logical operator?

1. and 2. or 3. not 4. Assignment

J.A.MANJULAH.,M.Sc.,M.Phil.,B.Ed(CS).,

You might also like