2. Topic 2(COLON) Programming Fundamentals in Python
Lesson 2.2: Operators, Expressions And String Handling — Quiz
Test your understanding of lesson 2.2: operators, expressions and string handling with 5 practice questions.
Practice Questions
Question 1
What is the result of the expression $7 \div 2$ in Python?
Question 2
How would you find the length of the string 'Hello' in Python?
Question 3
What will the result be when running the expression 'abc' + 'def' in Python?
Question 4
What does the expression $5 \% 2$ return in Python?
Question 5
Which of the following represents string slicing to get the first three characters of the string 'Programming'?
