Olympiad (Class 12) Python Strings Lists and Tuples — practice questions
22 free MCQs with worked solutions. Tap any question for the answer + explanation, or practice them all in the app.
Practice Olympiad (Class 12) Python Strings Lists and Tuples in the app →A learner asks what a Python string really is. It is a sequence of zero or more:In the Python string 'HELLO', the index of the letter H is:Counting from the right hand end of a Python string, the last character has index:The international standard Python uses for representing text is:The unique number Unicode gives to each possible character is called a:The built in function that converts a character into its code point is:The built in function that converts a code point back into a character is:Unicode was built as an extension of an older standard known as:The original ASCII standard defined how many code points?A backslash used inside a string to stand for a special character starts an:Julius Caesar shifted each letter of a message by three. Such a method is a:A string literal prefixed with the letter f, allowing values inside braces, is an:Inside an f string, an expression written in curly braces is called a:In the f string with minute:02d, the part written after the colon is a:In Python, the statement message = 'Hello' makes the variable message:The unique integer tied to an object, usually its memory location, is its:The built in function that reports what kind of object a value is:A Python list is written using comma separated values enclosed in:A Python list has 50 elements. The index of its last element is:The built in function that returns how many elements a list holds is:An object that cannot be changed after it is created is described as:A programmer needs a fixed sequence of constants that no code can alter. He should use a: