Python Programming: Intermediate (Leaving Cert Computer Science): Quizzes
📚Quizzes
Practise the questions
10 questions from this quiz
ShowHide
Practise the questions
10 questions from this quiz
What does 'hello'.upper() return?
What does 'hello'.upper() return?
HELLO
Given text='Python', what does text[0:3] return?
Given text='Python', what does text[0:3] return?
Pyt
What does str.find(sub) return if substring is not found?
What does str.find(sub) return if substring is not found?
-1
What does the escape character \n represent?
What does the escape character \n represent?
Newline
What does 'True and False' evaluate to?
What does 'True and False' evaluate to?
False
What is the purpose of elif in Python?
What is the purpose of elif in Python?
Check multiple conditions
What does it mean that lists are mutable?
What does it mean that lists are mutable?
Elements can be changed after creation
What does list.pop() with no argument do?
What does list.pop() with no argument do?
Removes and returns last item
Why is incrementation important in while loops?
Why is incrementation important in while loops?
Prevents infinite loops
What does range(5) generate?
What does range(5) generate?
Numbers 0 to 4
