What is a string in Python?, A loop, A sequence of characters, A condition, A number only, What does len(text) return?, The last character, The first letter, The number of characters, The position of a word, What is the first index in a Python string?, 0, -1, 10, 1, If name = "Oxford", what is len(name)?, 5, 0, 7, 6, If name = "Oxford", what is name[0]?, d, x, Oxford, O, What is the last valid index of a string?, len(text), len(text) - 1, 0, len(text) + 1, What is slicing used for?, To extract part of a string, To create a loop, To delete a program, To print numbers, In slicing text[start:end], is the end position included?, Only sometimes, Yes, No, Only with numbers, If word = "COMPUTING", what is word[0]?, O, COMPUTING, G, C, If word = "COMPUTING", what is word[3]?, M, U, P, T, If word = "COMPUTING", what is word[0:3]?, COM, PUT, OMP, COMP, If word = "COMPUTING", what is word[-1]?, C, G, N, O, What does .lower() do?, Changes text to lowercase, Removes spaces, Finds a word, Replaces text, What does .upper() do?, Counts letters, Removes characters, Changes text to uppercase, Checks errors, What does .strip() do?, Replaces numbers, Finds a character, Makes text uppercase, Removes spaces at the start and end, What does .find() return if text is not found?, Error always, -1, 1, 0, What does .replace() do?, Checks password length, Swaps text with new text, Counts characters, Deletes the whole string, Why is "Oxford" different from "oxford" in Python?, Python ignores capital letters, One is not a string, They have different lengths, Python is case-sensitive, What type of test data should the program accept?, Normal data, Wrong data, Boundary data, Invalid data, What is boundary test data?, Random data, Empty data only, Data at the edge of the rule, Data outside the rule, A username must be 5–12 characters. Is "abc" valid?, No, it is too long, Yes, because it has letters, Yes, No, it is too short, A username must not contain spaces. Is "john smith" valid?, No, Yes, Only if uppercase, Only if lowercase, What is wrong with name = "Ana" and print(name[3])?, Ana is too long, Nothing is wrong, Index 3 does not exist, Strings cannot be printed, Why should we use test cases?, To avoid using strings, To check if the program works correctly, To remove all variables, To make the code look longer, Which is a valid boundary test for a username of 5–12 characters?, abcde, abc, john smith
0%
10th - Week 3 - String Handling + Debugging
Sdílet
Sdílet
Sdílet
podle
Emiliojes
Upravit obsah
Tisk
Vložit
Více
Přiřazení
Výsledková tabule/Žebříček
Zobrazit více
Zobrazit méně
Tento žebříček je v současné době soukromý. Klikněte na
Share
chcete-li jej zveřejnit.
Tuto výsledkovou tabuli vypnul majitel zdroje.
Tento žebříček je zakázán, protože vaše možnosti jsou jiné než možnosti vlastníka zdroje.
Možnosti vrácení
Kvíz
je otevřená šablona. Negeneruje skóre pro žebříček.
Vyžaduje se přihlášení.
Vizuální styl
Fonty
Je vyžadováno předplatné
Možnosti
AI vylepšená: Tato aktivita obsahuje obsah generovaný AI.
Víc se uč.
Přepnout šablonu
Zobrazit vše
Při přehrávání aktivity se zobrazí další formáty.
Otevřené výsledky
Kopírovat odkaz
QR kód
Odstranit
Obnovit automatické uložení:
?