Unit1 - Introduction & Syntax of Python Program

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

Introduction & syntax of Python

Program [ MSBTE 22616 Python ]


Total points 20/20

Stay Tuned for Daily Quizzes on All 6th Semester Computer Group Subjects like
PHP, Python, MAD, and other

Online Quiz to help you in preparing for Online Exams, It covers Multiple Choice
Questions (MCQs) for 20 Marks

imp Links:
All Theory tutorials: https://bit.ly/335XFKi

contact us on [email protected]

Email (Optional)

1. Python was developed by * 1/1

A. Guido van Rossum

B. James Gosling

C. Dennis Ritchie

D. Bjarne Stroustrup

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 1/7
2. Python was developed in which year? * 1/1

A. 1972

B. 1995

C. 1989

D. 1981

3. Python is written in which language? * 1/1

A. C

B. C++

C. Java

D. None of the above

4. What is the extension of the python file? * 1/1

A. .p

B. .py

C. .python

D. None of the above

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 2/7
5. Python is an Object-Oriented Programming Language. * 1/1

True

False

6. Python 3.0 is released in which year? * 1/1

A. 2000

B. 2008

C. 2011

D. 2016

7. Which of the following statements is true? * 1/1

A. Python is a high level programming language.

B. Python is an interpreted language.

C. Python is an object-oriented language

D. All of the above

8. What is used to define a block of code in Python? * 1/1

A. Parenthesis

B. Indentation

C. Curly braces

D. None of the above

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 3/7
9. By the use of which character, single line is made comment 1/1
in Python? *

A. *

B. @

C. #

D. !

10. What is a python file with .py extension called? * 1/1

A. package

B. module

C. directory

D. None of the above

11. Is python programming uses a pair of curly braces {} * 1/1

True

False

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 4/7
12. Which statement is correct? * 2/2

A. List is immutable && Tuple is mutable

B. List is mutable && Tuple is immutable

C. Both are Mutable.

D. Both are Immutable

13. What is the output of the following program: print((1, 2) + (3, 2/2
4)) *

A. (1, 2), (3, 4)

B. (4, 6)

C. (1, 2, 3, 4)

D. Invalid Syntax

14. Which one of the following is a mutable data type? * 1/1

A. set

B. int

C. str

D. tupl

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 5/7
15. Which one of the following is an immutable data type? * 1/1

A. list

B. set

C. int

D. dict

16. Which of these is not a core data type? * 1/1

(A) Lists

(B) Dictionary

(C) Tuples

(D) Class

17. What data type is the object below? L = [1, 23, 'hello', 1] * 1/1

a) list

b) dictionary

c) array

d) tuple

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 6/7
18. Which function is used to take input in python? * 1/1

A. scanf()

B. int()

C. promt()

D. input()

Happy Learning!
cwipedia.in

This content is neither created nor endorsed by Google. - Terms of Service - Privacy Policy

 Forms

https://docs.google.com/forms/d/e/1FAIpQLSfjDdVe3JeBd9NC3fPsjxCd8KL996QLUeW7TuuGx5_K31yNgg/viewscore?viewscore=A… 7/7

You might also like