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

Revision Test Python Fundamental

The document contains questions about Python code examples involving strings, constants, sequences, and expressions versus statements. It asks to find errors in code snippets, predict output, explain string syntax rules, and describe the difference between expressions and statements.

Uploaded by

sar.ofba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Revision Test Python Fundamental

The document contains questions about Python code examples involving strings, constants, sequences, and expressions versus statements. It asks to find errors in code snippets, predict output, explain string syntax rules, and describe the difference between expressions and statements.

Uploaded by

sar.ofba
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Following code is creating problem X = 0281, find reason.

2. what will the following code do: a=b=18 ?


3. What is the error in following code: x, y =7 ?
4. Find the error in the following code:

5. Find the error in the following code:

6. How many types of sequences are supported in Python?

7. What will be the sizes of following constants?

(a) “\a” (b) “\a” (c) “Kumar\‟s” (d) “\” “ (e) “it’s”

8. Which of the following are syntactically correct strings? State reason.

(a) ”Python is nice Language”

(b) ‘He called me “Friend!” when he came’

(c) “Very Good‟

(d) “This is a good book”

(e) “Namaste

(f) “I liked ‘Harry Potter’very much”

9. Predict the output of the following:

(a)

(b)

10. What is the difference between an expression and a statement in Python?

You might also like