Python Online Quiz
Sign in to Google to save your progress. Learn more
Can a Python function can return multiple values ?
1 point
Clear selection
What is the output of:   print(['S'] * 4) ?
1 point
Clear selection
Suppose lst is a list, what is the output of:      "print(lst[:4] + lst[4:] == lst)" ?
1 point
Clear selection
What is value of c, in below statement:     a, b, c, d = 1000, 2000, 3000, 4000
1 point
Clear selection
Statement 1: Lists are immutable. Statement 2: Tuples are immutable. Which statement(s) is/are TRUE?
1 point
Clear selection
A = 10, 20, 30; print(A)     What is value of A ?
1 point
Clear selection
What is the output of:      "print(type(int('111')))" ?
1 point
Clear selection
An array, in Python, is a data structure that stores values of same data type. Is it TRUE or FALSE ?
1 point
Clear selection
What is the output of:     t=(99);  print(type(t)) ?
1 point
Clear selection
Which one of these is floor/integer division?
1 point
Clear selection
Is Python a case sensitive language? *
1 point
What is the output of:     print(1 - - 1) ?
1 point
Clear selection
What is the output of:     print(1_000_000_000) ?
1 point
Clear selection
Suppose list3 is a list in Python. Will the data type of list3[1] is same as list3[1:1] ?
1 point
Clear selection
A Python list, list1, is defined as [22, 3, 242, 64, 5]. What is the output of   list1[-1] ?
1 point
Clear selection
What is the output when you execute    print(list("Satya")) ?
1 point
Clear selection
What is the output of:    txt = "a Python string";   print(type(txt)) *
1 point
What is the output of:    T = 4, 5, 6;  print(type(T))
1 point
Clear selection
What is the output of:     print('Apple' < 'Google') ?
1 point
Clear selection
What is the output of:    a = 4.2;  b = 2.1;  print((a + b) == 6.3) ?
1 point
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google.