Вы находитесь на странице: 1из 1

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

(A) Lists (B) Dictionary (C) Tuples (D) Class

2. What data type is the object below?


L = [1, 23, ‘hello’, 1]
(A) List (B) Dictionary (C) Tuple (D) Array

3. print "Hello World"[::-1]

(A) dlroW olleH (B) Hello Worl (C) d (D) Error

4. What is the output of print str[2:5] if str = 'Hello World!'?


A) llo World! B) H C) llo D) None of the above.

5. Which of the following statements is true?


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.

6. What is the value of colors[2]?


colors = ['red', 'orange', 'yellow', 'green', 'blue', 'indigo', 'violet']
A) yellow B) Indigo C) Blue D) Orange

7. Who created python?


A) Guido van Rossum B) bill gates C) steve jobs D) sundar pichai