
Forritun 1 - Fyrirlestur 1-3
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
Gisli Ragnarsson
Used 2+ times
FREE Resource
Student preview

11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvaða aðgerð er notuð til að setja texta/streng í hástafi?
lower()
upper()
capitalize()
replace()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvaða aðgerð er notuð til að skipta út ákveðnum texta í streng?
replace()
split()
switch()
strip()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvað myndi prentast út úr kóðanum fyrir neðan?
texti = "EPLI"
print(texti.replace("P", "L"))
EPPI
ELLI
EPLI
EI
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvað gerir eftirfarandi kóði?
texti = "salami"
print(texti[::-1])
Setur öll tákn í hástafi
Prentar strenginn "salami" aftur á bak
Prentar út "s" sem er fyrsti stafurinn í "salami"
Setur fyrsta bókstafinn í hástafi
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvað myndi prentast út úr kóðanum fyrir neðan?
a = 5
a = a + a
print(a)
5
15
10
20
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvaða af eftirfarandi táknum er notað til að gera athugasemd í Python?
<!-- -->
//
/* */
#
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hvað prentast út úr kóðanum?
a = "5 + 5"
print(a)
5 + 5
10
55
15
Create a free account and access millions of resources
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?
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade