TopperG Exams

Related Posts

12TH

/15
1 votes, 5 avg
20
Created on

PYTHON EXAM 1

PYTHON REVISION TOUR 1

15 QUESTIONS

 

1 / 15

1. Which of the following not a token?

    1. Comments
    2. Identifiers
    3. Literals
    4. Operators

2 / 15

2. Python identifiers are case sensitive.

    1. True
    2. False
    3. Depends on Program
    4. Depends on the computer system

3 / 15

3. Which of the following are symbols used in programming languages to organize statement structures and indicate the rhythm of the program?

    1. Operators
    2. Punctuators
    3. Functions
    4. Literals

4 / 15

4. Which of the following literals must terminate in one line?

    1. Single line Strings
    2. Multi line strings
    3. Numeric Literals
    4. All of the above

5 / 15

5. Which of the following is an invalid identifier?

    1. CS_class_XII
    2. csclass12
    3. _csclass12
    4. 12CS

6 / 15

6. Which of the following are symbols used for computation or logical comparison in a program?

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

7 / 15

7. The tiny individual unit in python program is known as ___________

    1. Expression
    2. Statement
    3. Token
    4. Comment

8 / 15

8. The different names given to different parts of a program is known as _________

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

9 / 15

9. Which of the following is correct statement to computer square of variable x in python?

    1. x * 2
    2. x power 2
    3. x ** 2
    4. x // 2

10 / 15

10. To include non-graphic characters in python, which of the following is used?

    1. Special Literals
    2. Boolean Literals
    3. Escape Character Sequence
    4. Special Literal – None

11 / 15

11. Which of the following are pre-defined or reserved words that convey a special meaning in programming language?

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

12 / 15

12. Which of the following literal has either True or False value?

    1. Special Literals
    2. Boolean Literals
    3. Numeric Literals
    4. String Literals

13 / 15

13. Which of the line of code is a correct statement?

    1. xyz = 10 100 1000
    2. x y z = 10 100 1000
    3. x, y, z = 10, 100, 1000
    4. x y z= 10, 100, 1000

14 / 15

14. The octal literal and hexadecimal literals start with which of the following symbols resepctively?

    1. O0 and X0
    2. 0O and 0X
    3. Oct0 and Hex0
    4. 0o and 0x

15 / 15

15. If you want to display the values without decimal place after division, which of the following symbol is used?

    1. /
    2. //
    3. %
    4. **

Your score is

0%