stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Python 1 Flashcards | StudBud
Explore
/
Python 1
Python 1
15 terms
·
StudBud Administration
·
15 plays
Imported from external platform
Flashcards
15 cards
F
Practice quiz
P
Host live
L
Questions
15
Answers
1
Which statement is used to stop a loop?
Default
Stop
Return
Break
2
Why did python get the name python
It has a lot of libraries and uses
It is very hard to study
Because it is very large
Monty pythons flying circus -the tv show by BBC
3
Which of these collections defines a TUPLE?
("apple", "banana", "cherry")
["apple", "banana", "cherry"]
{"name": "apple", "color": "green"}
{"apple", "banana", "cherry"}
4
What is the correct way to create a function in Python?
def myFunction():
create myFunction():
New function ():
function myfunction():
5
@ is used as comments in python
True
False
6
How do you start writing an if statement in Python?
If x>y
If(x>y)
None of the above
If(x>y);
7
Which year was python found
1991
1990
1992
1989
8
What is a correct syntax to output "Hello mohan" in Python?
Print('''hello mohan'')
print("Hello mohan")
Printf('hello mohan')
Print "Hello World"
9
Which method can be used to return a string in upper case letters?
upperCase()
upper()
uppercase()
toUpperCase()
10
Python was found by James Gosling
False
True
11
Which of these collections defines a LIST?
("apple", "banana", "cherry")
{"name": "apple", "color": "green"}
{"apple", "banana", "cherry"}
["apple", "banana", "cherry"]
12
In python the same "brother" can be written as 'brother'
False
True
13
What is the correct file extension for Python files
.pyt
.pyth
.py
. python
14
What is the Output of the following code?for x in range(0.5, 5.5, 0.5): print(x)
[0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 5.5]
[0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5]
[1,2,3,4,5]
The Program executed awith errors
15
What are all the uses of python
Web development
Artificial intelligence
Data science
Everything