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
Condividi
Condividi
Condividi
di
Emiliojes
Modifica contenuto
Stampa
Incorpora
Altro
Compiti
Classifica
Mostra di più
Mostra meno
Questa classifica è privata. Fai clic su
Condividi
per renderla pubblica.
Questa classifica è stata disattivata dal proprietario della risorsa.
Questa classifica è disattivata perché le impostazioni sono diverse da quelle del proprietario della risorsa.
Ripristina le opzioni
Quiz
è un modello a risposta aperta. Non genera punteggi validi per una classifica.
Login necessario
Stile di visualizzazione
Tipi di caratteri
Abbonamento richiesto
Opzioni
AI Enhanced: Questa attività contiene contenuti generati dall'IA.
Ulteriori informazioni.
Cambia modello
Mostra tutto
Mentre esegui l'attività appariranno altri formati.
Apri risultati
Copia link
Codice QR
Elimina
Ripristinare il titolo salvato automaticamente:
?