Advance Python Quiz 2
Advance Python Quiz 2
Advance Python Quiz 2
CLASS :
Advanced python for CLASS 10 AI
DATE :
64 Questions
a) Float b) Integer
c) Complex d) None of the above
3. ______ data types store values of more than one data type
a) List b) Tuple
c) Float d) Dictionary
a) Tuples b) List
c) Set d) Dictionaries
a) Yes b) No
a) / b) +
c) () d) -
a) my-var b) my_var
c) Myvar d) _myvar
How do you create a variable with the numeric value 5?
8.
a) x = int(5)
b) x = 5 c) Both the other answers are correct
a) x = 2.8 b) x = oat(2.8)
c) Both the other answers are correct
a) print(typeof(x)) b) print(typeOf(x))
c) print(type(x)) d) print(typeof x)
a) == b) <>
c) >< d) =
a) break b) stop
c) exit d) return
a) my_string_1 b) b) 1st_string
c) foo d) _
a) 7 b) 1
c) 5 d) 0
a) _var b) var_name
c) 11var d) var11
a) 10 b) 35.0
c) 30 d) 30.0
a) 30.5 b) -10.5
c) 10.1 d) -1.2
a) // b) ?
c) < d) and
a) identi er b) keyword
c) operator d) literal
a) identi er b) keyword
c) literal d) operator
Select the logical operators-
23.
a) or
b) not c) and
d) in
a) 4 b) 6
c) 8 d) 5
a) 30 b) -10
c) 10 d) -30
a) mywork b) my work
c) work my d) workmy
a) 2 b) 3
c) 4 d) 5
a) Float b) Int
c) Boolean d) String
29. What data type represents only two possible outcomes?
a) Float b) Int
c) Boolean d) String
a) 0246 b) 01234
c) 1234 d) 7531
a) 3 b) 1
c) 2 d) 12
c) <> d) ><
36. Which of the following symbols is used in Python to mean
"Greater than or equal to"?
a) <= b) >>
c) >= d) =>
37.
a) 5 b) 4
4 3
3 2
2 1
1 0
c) 5 4 3 2 1 d) 4 3 2 1 0
38.
39. A condition is
a) i b) k
c) a d) n
a) i b) n
c) a d) k
a) ; b) :
c) . d) ,
46. Which of these codes will print all the numbers from a
given number subtracted by 5 until it reaches 0.
a) b)
c) d)
a) 5 b) 15
c) 20 d) 25
a) b)
a) 1,2,3,4,5,6,7,8,9,10,11,12 b) 0,2,4,6,8,10
c) 2,4,6,8,10,12 d) 2,4,6,8,10
50. What does the '#' allow you to do?
a) condition b) True
c) Program has a syntax error. d) 3 > 2
a) J, h, n, b) J, h, o, n,
c) Error d) None of the given Options
a) nested if b) if..else
c) else if d) if..elif
a) range b) print
c) format d) input
57. _____ statement is used to skip the remaining part of the
loop and start with next iteration.
a) Pass b) break
c) continue d) range
a) 100121144 b) 100121144169
c) 100121 d) 100169
a) true b) false
a) Compiler b) Interpreter
a) TRUE b) FALSE
64. >>>list1= ["Kathak", "Kathakali", "Odissi", "Manipuri",
"Kuchipudi"]>>>list2=[100, 200, 300, 400, 500,600]>>>list3=
list1[:]>>>list4= list2[2:5]