GoConqr has a new look! Let us know what you think.

Quiz

PyPreparation

Mark Kim 59 questions

Take the quiz

Questions in this quiz (59)

  1. 1Which of the following is invalid?
    1. A__str__ = 1
    2. Bnone of the mentioned
    3. C__a = 1
    4. D_a = 1
  2. 2Who created the Python?
    1. APython Charm
    2. BMads Torgersen
    3. CRick Mascitti
    4. DGuido van Rossum
  3. 3We can create a dictionary which contains dictionatries. True or false?
    1. ATrue
    2. BFalse
  4. 4Is Python case sencitive when dealing with identifiers?
    1. Anone of the mentioned
    2. Bmachine dependent
    3. Cno
    4. Dyes
  5. 5What is a correct syntax to output "Some like it hot" in Python?
    1. Aprint "Some like it hot"
    2. B"Some like it hot"
    3. Cp("Some like it hot")
    4. Decho"Some like it hot"
    5. Eprint("Some like it hot")
  6. 6What will be the output of the given code snippet?Image for question 6
    1. ANo, 'A' is not int the letters sequence
    2. BIt will terminate with en error
    3. CIt will not print anything
    4. DYes, 'A' is in the letters sequence
  7. 7What will be the output of this code?
    a = "Cyber"
    b = "Pank"
    c = a+b
    print(c)
    1. ATrue
    2. BFalse
    3. CCyberPank
    4. DError
    5. ECyber Pank
  8. 8Choose the correct output formatting
    1. Aprint("My full name is %s%s" % (a,b)), where a = 'a'; b = '6'
    2. Bprint("My full name is %s%s" % (a,b)), where a = 5, b = 6
    3. Cprint("My full name is %f%f" % (a,b)), where a = 'a'; b = '6'
    4. Dprint("My full name is %i%i" % (a,b)), where a = 'a'; b = '6'
  9. 9Which of these is not a core datatype?
    1. ALists
    2. BDictionary
    3. CTuples
    4. DClass
  10. 10Python requires us to declare types such as int, string, and char[] before declaring a variable
    1. ATrue
    2. BFalse

Information

Description
Quiz on PyPreparation, created by Mark Kim on 18/12/2019.
Author
Mark Kim
Language
English
Views
32
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?