#Community Quiz (Data types)

  1. Which of the following cannot be a python variable name ?
    A) Int_1
    B) true
    C) var-2
    D) name3

  2. Which of the following in not a python Datatype ?
    A) int
    B) string
    C) char
    D) set

  3. What is the output of the following code ?
    print(type{})
    A) <class ‘set’>
    B) <class ‘list’>
    C) <class ‘tuple’>
    D) <class ‘dict’>

  4. Which data type can be used to store the percentage obtained by a student ?
    A) Boolean
    B) Float
    C) String
    D) Int

  5. What is the output of the following code?
    lst = [‘a’,‘b’,‘g’,1,5]
    print(lst.pop)
    A) 5
    B) [‘a’,‘b’,‘g’,1]
    C) [‘b’,‘g’,1,5]
    D) Syntax error

  6. Which of the following operators is used to add elements at the end of list?
    A) add()
    B) join()
    C) attach()
    D) append()

  7. What is the output of following code snippet ?
    var=2
    print(2==2.0)
    A) true
    B) false
    C) True
    D) False

  8. What is the output of following code snippet ?
    num = 4 + 0j
    print(type(num))
    A) Int
    B) Float
    C) Complex
    D) Real

  9. What is the output of following code snippet ?
    print(int(3.9))
    A) 4
    B) 3.9
    C) 3
    D) None

  10. In which of the following indexing is not allowed?
    A) Dictionary
    B) Set
    C) Tuple
    D) None

1 Like

1=a
2=c
3=d
4=b
5=d
6=d
7=b
8=c
9=c
10=a

1 Like

The answers for the quiz are (1.C, 2.C, 3.D, 4.B, 5.B, 6.D, 7.D, 8.A, 9.C, 10.A).

1 Like
  1. C) var-2
  2. C) char
  3. D) <class ‘dict’>
  4. B) Float
  5. D) Syntax error
  6. D) append()
  7. C) True
  8. C) Complex
  9. C) 3
  10. B) Set
1 Like
  1. Correct Answer is A
    2.Correct Answer is C
    3.Correct Answer is C
    4.Correct Answer is B
    5.Correct Answer is D
    6.Correct Answer is D
    7.Correct Answer is C
    8.Correct Answer is C
    9.Correct Answer is C
    10.Correct Answer is A
1 Like

1 C) var-2
2 C) char
3 D) <class ‘dict’>
4 B) Float
5 D) Syntax error
6 D) append()
7 C) True
8 C) Complex
9 C) 3
10 B) Set

1 Like

1-a
2-c
3-d
4-b
5-d
6-d
7-a
8-c
9-c
10-a

1 Like

1.b
2. c
3. d
4.b
5.a
6.d
7.a
8.c
9.c
10.b

1 Like

1.C) var-2
2.C) char
3.D) <class ‘dict’>
4.B) Float
5.D) Syntax error
6.D) append()
7.C) True
8.C) Complex
9.C) 3
10.B) Set

1 Like

1.var-2
2.char
3.<class ‘dict’>
4.Float
5.Syntax Error
6.append()
7.True
8.Complex
9.3
10.Set

1 Like

The answer of Quiz is:

  1. A)
  2. C
  3. D
  4. B
  5. D
  6. D
  7. C
  8. C
  9. C
  10. B
1 Like

Answers,
1= C
2= C
3= D
4= B
5= D
6= D
7= C
8= C
9= C
10= B

1 Like

answers
1-C
2-C
3-D
4-B
5-D
6-B
7-C
8-C
9-C
10-A

1 Like

1-c 2-c 3-d 4-b 5-d 6-d 7-c 8-c 9-c 10-a

1 Like

Answers for this QUIZ
C,C,D,B,D,D,D,C,B,D.

1 Like

1.B
2.C
3.D
4.B
5.D
6.D
7.C
8.C
9.C
10.B
Above answers are the quiz answers

1 Like

1.c
2.c
3.d
4.b
5.d
6.d
7.b
8.c
9.c
10.b

1 Like

1=c
2=c
3=d
4=b
5=d
6=d
7=c
8=c
9=b
10=b

1 Like
  1. C
  2. C
  3. D
  4. B
  5. D
  6. D
  7. C
  8. C
  9. C
  10. A
    Please find the answers above.
1 Like
  1. c
  2. b
  3. d
  4. b
  5. b
  6. d
  7. c
  8. c
  9. c
  10. b