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

Python Fundamentals Test-1

Uploaded by

sasi kata
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)
2 views2 pages

Python Fundamentals Test-1

Uploaded by

sasi kata
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/ 2

CLASS-XI-TEST ON PYTHON FUNDAMENTALS

1. Which of the following are the fundamental building blocks of a computer?


a. Identifiers b. Constants c. Punctuators d. Tokens
2. Tokens are also called as?
a. Functions b. Methods c. Lexical Unit d. Limit Unit
3. Which is the correct operator for power(x,y)?
a. X^y b. X**y c. X^^y d. None of the mentioned
4. Which of the following literal is not supported in python?
a. real b b. int c. date d. complex
5. Which of the following is unary operator?
a. > b. * c. ~ d. and
6. Which of the following is not a valid in Hexadecimal format?
a. 9 b. A c. F d.10
7. What is the maximum length of an Identifier
a. 31 b.78 c. 45 d. can be of any length
8. Which of the following string is syntactically correct?
a. “Hello world!” b. ‘She shouted ‘Hello’ loudly”

c. “Goodbye’ d. “This “course is good

9. Which of the following is not a keyword


a. True b. false c. None d. if
10. ----------------function is used to find the size of the string
a. Len() b. len() c. size() d. length()
11. Identify the type of literal:
a. 4500.00 :
b. ‘4500’ :
c. 4500 :
d. 0x45 :
e. 0o45 :
f. True :
g. 6+7j :
h. ‘false’ :
12. Predict the output for the following expressions:
a,b,c=45.5,5,2
a. print(a+b) :
b. print(b-c) :
c. print(a*c) :
d. print(b**c):
e. print(a/b) :
f. print(a//b) :
g. print(b/c) :
h. print(a%c) :
13. Identify which of the following identifier names are valid or invalid and if it is invalid state the
reason?
a. Serial_no. :
b. Total_Marks :
c. 1st_Room :
d. total-Marks :
e. Hundred$ :
f. _Percentage :
g. Total Marks :
h. True :
14. Find out the length of the following strings:
a. ‘Ravi\’s Book’ :
b. “python program 11#” :
c. ‘’’Hi
Hello
Welcome’’’ :
d. ‘my\
First\
Program’ :
15. Predict the output of the following:
a. print(‘Division represents with \\’) :
b. print(‘Good\tMorning’) :
c. print(“Ravi’s computer”) :
d. print(“Hi\nHello”) :
e. print(“String”+”Literal”) :
f. print(“NONE”*4) :
16. The following questions contain two statements: ASSERTION and REASONING. Each question
has four choices i, ii, iii, iv choices – only one of which is correct. In the light of these
statements, choose the most appropriate option
i. Both A and R are true and R is the correct explanation of A
ii. Both A and R are true and R is the not correct explanation of A
iii. A is true but R is false
iv. A is false but R is true
a. Assertion(A): Arithmetic operators are used to perform operations like addition,
subtraction, multiplication etc.,
Reasoning(R): The output of an expression with arithmetic operator is always a digit.
(i) (ii) (iii) (iv)
b. Assertion(A): Literals cannot be modified at runtime.
Reasoning(R): Literals are having fixed values.
(i) (ii) (iii) (iv)
c. Assertion(A): None (Special literal) is used to define value.
Reasoning(R): Keywords are also called as reserve words.
(i) (ii) (iii) (iv)

You might also like