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

Quiz

python beyond basics quiz

Andrew Sperazza 32 questions

Take the quiz

Questions in this quiz (32)

  1. 1a package is a special type of:
    1. Afile
    2. Bprogram
    3. Calgorithm
    4. Dmodule
  2. 2can a package contain other package?
    1. ATrue
    2. BFalse
  3. 3what is a sequence specifying the directories from which a package are loaded?
    1. A_path
    2. B['path']
    3. Cpackage_path
    4. D__path__
    5. Eimport FILE as _path
  4. 4*args are pass as what type?
    1. Aset
    2. Blist
    3. Cdictionary
    4. Dtuple
  5. 5properties must have both setter and getter?
    1. ATrue
    2. BFalse
  6. 6what does function abs() do?
    1. Areturns absolute value of number
    2. Breturns the distance of argument from zero
    3. Creturns the argument but with positive value
  7. 7what does BaseException arg attribute contain?
    1. Aempty tuple
    2. Bempty set
    3. Csingle element tuple with diagnostic string
    4. Dtuple with diagnostic string and error message
    5. ENone
  8. 8what is a template method?
    1. Aa way to create copies of functions
    2. Blanguage independent design pattern
    3. Cpython specific design pattern
    4. Da python language feature
  9. 9what do context-managers assist with?
    1. Aresource management
    2. BONLY open file functions
    3. Corganizing source code calls
    4. Dlocalizing error message contexts
  10. 10issubclass() ?
    1. Adetermines if any class has base classes
    2. Bdetermines if first argument is subclass of second
    3. Cdetermines if first argument is second of first
    4. Ddetermines if class can be used as base class

Information

Description
python (quizes) Quiz on python beyond basics quiz, created by Andrew Sperazza on 09/01/2017.
Language
English
Views
0
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?