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
Hur sammanfogar man två strängar?"
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 Wayground
16 questions
2doP PROGRAMACIÓN

Quiz
•
12th Grade
11 questions
Informationssamhället

Quiz
•
6th - 9th Grade
11 questions
Quiz 2 inför prov kap 3-6

Quiz
•
9th - 12th Grade
10 questions
ELECTRONICA

Quiz
•
11th Grade
12 questions
LABORATORIO 1 4TO BACO

Quiz
•
9th - 12th Grade
11 questions
VARIABLES EN PROGRAMACION

Quiz
•
9th Grade
15 questions
OPERADORES PHP

Quiz
•
12th Grade
10 questions
Java Fundamentals

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
19 questions
Mental Health Vocabulary Pre-test

Quiz
•
9th Grade