Podcast
Questions and Answers
What is the correct definition of the inclusive or in Python?
What is the correct definition of the inclusive or in Python?
- The whole complex conditional is true only if both tests are true
- The whole complex conditional is true if and only if both tests are true
- The whole complex conditional is true if either one of the tests is true or if both are true (correct)
- The whole complex conditional is true only if either one of the tests is true
What does the 'onKeyHold' event do?
What does the 'onKeyHold' event do?
- It is called when a key is pressed and held for a short duration
- It is called repeatedly until the key is released (correct)
- It is called when a key is pressed and released
- It is called once when a key is pressed
What happens to the conditionals inside a nested 'if' statement?
What happens to the conditionals inside a nested 'if' statement?
- They are tested only if the outside conditional is false
- They are always tested regardless of the outside conditional
- They are tested only if the outside conditional is true (correct)
- They are never tested
What does the 'in' keyword check for when used to check if a certain key is being held?
What does the 'in' keyword check for when used to check if a certain key is being held?
What does the 'not' keyword do in conditionals?
What does the 'not' keyword do in conditionals?
What is the Python inclusive 'or' behavior in complex conditionals?
What is the Python inclusive 'or' behavior in complex conditionals?
What does the 'not' keyword do in complex conditionals?
What does the 'not' keyword do in complex conditionals?
What happens to the code in the body of the inside conditionals in nested conditionals?
What happens to the code in the body of the inside conditionals in nested conditionals?
What is the parameter to 'onKeyHold' when dealing with holding down multiple keys?
What is the parameter to 'onKeyHold' when dealing with holding down multiple keys?
What happens to 'onKeyHold'?
What happens to 'onKeyHold'?
Flashcards are hidden until you start studying