0% found this document useful (0 votes)
3 views4 pages

Class X Python Revision

The document is a revision guide for Class X students on Python programming, covering fundamental concepts such as language types, modes of operation, and basic syntax. It includes questions and answers about Python's portability, case sensitivity, and various operators, as well as examples of print statements and variable usage. Key topics include interactive vs scripting modes, data types, and the role of comments and escape sequences in Python code.
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)
3 views4 pages

Class X Python Revision

The document is a revision guide for Class X students on Python programming, covering fundamental concepts such as language types, modes of operation, and basic syntax. It includes questions and answers about Python's portability, case sensitivity, and various operators, as well as examples of print statements and variable usage. Key topics include interactive vs scripting modes, data types, and the role of comments and escape sequences in Python code.
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

Class X

Revision of python

1. Which language uses mnemonics codes?


Ans1 Assembly language

2. Which is the native language of the computer?

Ans 2 Machine language/Low level language/Binary language

3 Python is a portable language .Explain

Ans3 It can run on different platforms/operating systems (windows, ios, android)

4 Is python case sensitive?

ans 4) yes it is case sensitive. A and a are different

5 Which key you will press after the print statement to get the output

ans 5 enter key/F5

6 What are the two modes in python

Ans 6 a) interactive and scripting

7 What is interactive mode?

ans 7 In interactive mode we write one line codes and when we press enter we see the output

8 What is scripting mode?

Ans 8 In scripting mode we can write program of many lines.

9 What is the extension of python program

Ans9 .py

10 A set of instructions written to carry out a specific task is called a __program

11. IDLE stands for _Integrated development environment

12 Python is a __high__level programming language.

13 ____#______ sign is used to put comments

14 A ____escape sequence is a non printable character that is written using a backslash (\)

15 Two escape sequences are \n and \t


16 \n is for new line

17 \t is for tab ( 8 spaces)

18. The arithmetic operator used for remainder is __%________

19. The operator for division is ______/____

20 The operator for floor division is _______//__________

21 The operator for "equal to" is ___==_____________(relational)

22 The operator for comparison is ____==______________(relational)

23 the assignment operator which assigns the value from right side to left side is __=______

24 The relational operator for not equal to ___!=________

25 ____compiler___________converts the entire program in machine language at once .

26 __interpreter___________ converts the high level program to machine language line by line

27 ____assembler________ converts the assembly language to machine language

28 find the output

a) print(" I \t am learning \t python")

output: I am learning python

b) print(" I \n am leaning \n python")

output

am learning

python

c) print("I \v am leaning \v python")

output : I am leaning python

d) a=13

b=2

c=a/b

e=a//b

print(c) 6.5

print(e) 6

print(a%b) 1
e) a=(10*90)/(9*10) +2

print(a) 12

f) # print(10+2) no output

print(10+7) 17

29 >>> is called as ____python shell______ or ______prompt________

30 The different datatypes in python are __int______, ___float________, ____string________


,______list__________, __tuple_________.

31 For decimal values use float datatype

32 The default datatype is ___string________________

33. ____variables__________ are named memory locations that are used to store data values.

34 A variable name can start with a ___alphabet____________ or an ___underscore________

35 A variable name cannot contain ____spaces_________

36 variable names are ___case sensitive__________(Print and print are different)

37 A variable name must not contain ___reserved words__________(print)

38 Which sign is used to join a variable and a message ___,______print( a , "is my name")

You might also like