stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
python 0-10 -- Language & algorithms Flashcards | StudBud
Explore
/
python 0-10 -- Language & algorithms
python 0-10 -- Language & algorithms
9 terms
·
StudBud Administration
·
34 plays
Imported from external platform
Flashcards
9 cards
F
Practice quiz
P
Host live
L
Questions
9
Answers
1
9-For any string,
s='<any string>'
,which of these is always equivalent to s:
s + s[0:-1 +1]
s[0:]
s[:-1]
s[:]
2
7-Which of the following are
valid strings
in Python?
"Ada
'"Ada'
'Ada"
"Ada"
3
2-Which of these sentences can be produced from this grammar, starting from
sentence
?
Python Eat Python
Python Eat Cookies
I Like Eat
4
1-What is a Programming Language? (choose the best option)
a language designed for describing programs
a language made to be read and written by humans, and executed by computers
a language designed to be executed by computers
a language designed to be written by humans, and executed by computers
5
6-What is the value of seconds after running this code?
120
0
ERROR
60
6
3-Which of the following are valid Python expressions that can be produced starting from
Expression
?
(1 * (2 * (3 * 4)))
((3)
+ 3 3
3
7
What is the goal of Unit 1?
Write code for performing mathematical actions.
Write code.
Get started programming.
Learn important computers science concepts.
8
5-What is the value of
hours
after running this code?
22
18
20
10
9
10-Which of the following evaluate to -1 :
'test'.find('t')
'west'.find('test')
"Test".find('te')
"test".find('st')