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

Python - Basic - Questions New One

The document contains a quiz with multiple-choice questions about Python programming language, covering topics such as its developer, programming types supported, syntax, keywords, comments, and identifiers. It includes questions about error outputs and valid/invalid variable names. The quiz aims to test knowledge on Python fundamentals.

Uploaded by

behoh38682
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)
2 views3 pages

Python - Basic - Questions New One

The document contains a quiz with multiple-choice questions about Python programming language, covering topics such as its developer, programming types supported, syntax, keywords, comments, and identifiers. It includes questions about error outputs and valid/invalid variable names. The quiz aims to test knowledge on Python fundamentals.

Uploaded by

behoh38682
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

1. Who developed python P.

a) Vick van Rossum

b) Rasmus Lerdorf

c) Guido van Rossum

d) Niene Stom

2. Which type of programming does python support

a) object-oriented programming

b) structured programming

c) functional programming

d) all the above

3. Which is the correct syntax in python file

a) .python

b) .pl

c) .py

d) .p

4. All keyword in python are in

a) capitalized

b) lower case

c) upper case

d) None of the above

5. What will be the output a=5+*(34)

a) 38

b) 0

c) Error

6. Which of the following is used to define a block of code

a) indentation

b) key
c) bracket

d) all the above

7. Used to give single line comment

a) //

b) #

c) !

d) /*

8. Use of id function

a) It return id of the object

b) Every object does not have unique id

c) All the above

9. What is the output

>>> 'bc' >> 'a' + 'bc'

a) bc

b) abc

c) a

d) bca

10. What is the maximum possible length of an identifier

a) 31 characters

b) 63 characters

c) 79 characters

d) None of the mentioned

11. Which of the following is invalid

a) -a = 1

b) a = 10

c) _str_ = 1

d) None of the mentioned


12. Which of the following is an invalid variable

a) myString_1

b) 1stString

c) foo

d) -

You might also like