
Forritun 1 - Fyrirlestur 4-6
Authored by Gisli Ragnarsson
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Allir bókstafir hafa staðsetningu í textum. Númer hvað er fyrsti bókstafurinn í textum í Python?
0
1
-1
::-1
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Oft er talað um lengd strengs í Python, hver er lengd strengsins "Hopp"?
4
3
5
0
3.
FILL IN THE BLANKS QUESTION
2 mins • 1 pt
Hvað vantar í kóðann hérna til að það sé prentað út fyrsta stafinn í orðinu?
texti = "Hallo"
print( (a) )
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Allir stafir í streng hafa staðsetningu, hver er staðsetning á síðasta stafnum í öllum strengjum?
-1
-2
-0
5
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hvað myndi prentast út úr kóðanum fyrir neðan?
texti = "Astralia"
print(texti[1:4])
str
stra
Ast
Astra
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Hvað myndi prentast út úr kóðanum fyrir neðan?
texti = "Fyrirgefðu"
print(texti[-3:])
fðu
ðu
efðu
irgefðu
7.
FILL IN THE BLANKS QUESTION
2 mins • 1 pt
Hverju þarf að bæta við forritið þannig að textinn "all" prentist út?
texti = "Hallo"
print( (a) )
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?