
Python - palindrom, tekst, do zadań losowych

Quiz
•
Computers
•
9th Grade
•
Medium
KP KP
Used 4+ times
FREE Resource
13 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Aby zamienić liczbę dziesiętną na binarną użyjesz funkcji:
2.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Aby zamienić liczbę dziesiętną na szesnastkową użyjesz funkcji:
3.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Aby zamienić liczbę dziesiętną na ósemkową użyjesz funkcji:
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Aby wypisać pierwszą literę zmiennej nazwisko:
nazwisko = "Rossum"
print(nazwisko[-1])
print(nazwisko[0])
print(nazwisko[:1])
print(nazwisko[1:])
Answer explanation
To print the first letter of the variable 'nazwisko', use print(nazwisko[0]). This will access the first character 'R' in the string 'Rossum'.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Aby wypisać ostatnią literę zmiennej nazwisko:
nazwisko = "Rossum"
print(nazwisko[-1])
print(nazwisko[0])
print(nazwisko[:1])
print(nazwisko[1:])
Answer explanation
To print the last letter of the variable 'nazwisko', use 'print(nazwisko[-1])'. This will access the last character in the string 'Rossum'.
6.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Aby wypisać pierwszych 5 znaków zmiennej nazwisko:
nazwisko = "Guido van Rossum"
wybierz wszystkie poprawne
print(nazwisko[:-1])
print(nazwisko[5:])
print(nazwisko[0:5])
print(nazwisko[:5])
Answer explanation
To print the first 5 characters of the variable 'nazwisko', you can use print(nazwisko[0:5]) or print(nazwisko[:5]). These slices will output 'Guido'.
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Aby wypisać nazwisko od końca:
nazwisko = "Guido van Rossum"
print(nazwisko[::-1])
print(nazwisko[:-1])
print(nazwisko[-1:])
print(nazwisko[:-1])
Answer explanation
The correct choice is print(nazwisko[::-1]) because using the slicing syntax [::-1] allows us to reverse the string 'Guido van Rossum'.
Create a free account and access millions of resources
Similar Resources on Wayground
8 questions
Uvod u Džupiter

Quiz
•
9th - 10th Grade
15 questions
HTML & CSS

Quiz
•
9th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
18 questions
Strukturalne typy danych, operacje na plikach, klasy - Python

Quiz
•
9th Grade - University
10 questions
9-сынып. Python массив.

Quiz
•
1st - 9th Grade
15 questions
5-sinf informatika

Quiz
•
9th Grade
8 questions
Python basics

Quiz
•
6th - 10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade