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?
Break
Default
Stop
Return
2
What is a correct syntax to output "Hello mohan" in Python?
Print "Hello World"
Printf('hello mohan')
print("Hello mohan")
Print('''hello mohan'')
3
What is the correct way to create a function in Python?
create myFunction():
New function ():
function myfunction():
def myFunction():
4
In python the same "brother" can be written as 'brother'
True
False
5
How do you start writing an if statement in Python?
If x>y
None of the above
If(x>y);
If(x>y)
6
Which of these collections defines a LIST?
("apple", "banana", "cherry")
{"name": "apple", "color": "green"}
["apple", "banana", "cherry"]
{"apple", "banana", "cherry"}
7
Why did python get the name python
Because it is very large
Monty pythons flying circus -the tv show by BBC
It is very hard to study
It has a lot of libraries and uses
8
@ is used as comments in python
True
False
9
Which method can be used to return a string in upper case letters?
uppercase()
upper()
toUpperCase()
upperCase()
10
What are all the uses of python
Data science
Artificial intelligence
Everything
Web development
11
What is the Output of the following code?for x in range(0.5, 5.5, 0.5): print(x)
The Program executed awith errors
[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]
12
Python was found by James Gosling
False
True
13
Which year was python found
1992
1991
1989
1990
14
What is the correct file extension for Python files
.pyth
. python
.pyt
.py
15
Which of these collections defines a TUPLE?
("apple", "banana", "cherry")
{"apple", "banana", "cherry"}
{"name": "apple", "color": "green"}
["apple", "banana", "cherry"]