Podcast
Questions and Answers
What percentage of the final grade does this practice mid-semester test count for?
What percentage of the final grade does this practice mid-semester test count for?
10%
Are students allowed to use calculators and dictionaries during the test?
Are students allowed to use calculators and dictionaries during the test?
No
What materials are students authorized to use during the test?
What materials are students authorized to use during the test?
None
How many marks does this practice mid-semester test contain?
How many marks does this practice mid-semester test contain?
Signup and view all the answers
What is the time allowed for this practice mid-semester test?
What is the time allowed for this practice mid-semester test?
Signup and view all the answers
What is the instruction regarding communication with other students during the test?
What is the instruction regarding communication with other students during the test?
Signup and view all the answers
What is the value of the expression $5 * 6 // 7 + 8 % 9 / 10$?
What is the value of the expression $5 * 6 // 7 + 8 % 9 / 10$?
Signup and view all the answers
What is the result of the Python statement $tuple("bird")[::-1]$?
What is the result of the Python statement $tuple("bird")[::-1]$?
Signup and view all the answers
How can you create a new version of a Python string 'text' where all alphabetic characters are converted to lower case and leading/trailing blank characters are removed?
How can you create a new version of a Python string 'text' where all alphabetic characters are converted to lower case and leading/trailing blank characters are removed?
Signup and view all the answers
How can you right-justify a Python string 'text' with less than 20 characters in a 20-character long string 'text20'?
How can you right-justify a Python string 'text' with less than 20 characters in a 20-character long string 'text20'?
Signup and view all the answers
How can you replace the first element of a Python tuple 'tup' with the special value None?
How can you replace the first element of a Python tuple 'tup' with the special value None?
Signup and view all the answers
What happens when you try to add the strings '12' and '2' in Python?
What happens when you try to add the strings '12' and '2' in Python?
Signup and view all the answers
What is the output of the Python statement '"hello hello".split("e")'?
What is the output of the Python statement '"hello hello".split("e")'?
Signup and view all the answers
What does the Python function biggest_diff(subject1, subject2)
do?
What does the Python function biggest_diff(subject1, subject2)
do?
Signup and view all the answers
What is the condition for the return value to be positive in the biggest_diff
function?
What is the condition for the return value to be positive in the biggest_diff
function?
Signup and view all the answers
What is the condition for the return value to be negative in the biggest_diff
function?
What is the condition for the return value to be negative in the biggest_diff
function?
Signup and view all the answers
How are the marks of students represented in the biggest_diff
function?
How are the marks of students represented in the biggest_diff
function?
Signup and view all the answers
What does the Python variable lw
store in the given scenario?
What does the Python variable lw
store in the given scenario?
Signup and view all the answers
What is the significance of the lists being the same length in the biggest_diff
function?
What is the significance of the lists being the same length in the biggest_diff
function?
Signup and view all the answers