Hur sammanfogar man två strängar?"
Hello World - Quiz

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Abdirahman Mohamed
Used 3+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
string1.combine(string2)
string1 + string2
string1string2
string1.concatenate(string2)
Answer explanation
För att sammanfoga två strängar använder man operatorn +. Detta alternativ är korrekt eftersom det kombinerar innehållet i string1 och string2 till en enda sträng.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vad sker med koden till vänster när den körs?
"meddelande" skrivs ut.
Python kastar ett SyntaxError eftersom strängen inte är omgiven av citat.
print(meddelande)
"Vilket coolt meddelande!" skrivs ut till konsolen.
Answer explanation
Python kastar SyntaxError eftersom strängen saknar citattecken.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilken funktion ger utskrift i terminalen?
print()
type()
output()
write()
Answer explanation
Funktionen 'print()' ger utskrift i terminalen genom att skriva ut text eller variabler.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vad blir värdet på modulo_variable i uttrycket till vänster?
3.5
56
2
0
Answer explanation
Värdet på modulo_variable blir 2 eftersom det är det enda alternativet som är korrekt.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilken av de definierade variablerna i kodblocken är en sträng?
cool_variable_1
cool_variable_2
cool_variable_3
cool_variable_4
Answer explanation
Den korrekta variabeln är cool_variable_3 eftersom den är en sträng.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vad är utskriften från koden som visas till vänster?
cool_number
42
210
None
Answer explanation
Koden kommer att skriva ut talet 42 eftersom det är det enda rätta svaret.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Vilket av följande exempel skulle leda till ett SyntaxError?
Answer explanation
I Python börjar och slutar en sträng med samma typ av citattecken.
Antingen väljer du att omge strängen med en enkel citattecken eller en dubbel citattecken.
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Reto 7/ Ozaria

Quiz
•
11th Grade
14 questions
Datorns Historia

Quiz
•
7th - 9th Grade
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
10 questions
ELECTRONICA

Quiz
•
11th Grade
11 questions
VARIABLES EN PROGRAMACION

Quiz
•
9th Grade
12 questions
PHP Quiz

Quiz
•
11th Grade
15 questions
OPERADORES PHP

Quiz
•
12th Grade
10 questions
Java Fundamentals

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University