Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Online Python Technical Quiz

Topics Covered

  • Packages
  •  Scripts
  •   Modules
  • Subprocess module
  • Random module
  •  Regular Expressions
  • Built-in functions
  •  Strings
  •  Nested Loops
  • Command-line arguments
  •  Extended Iterable Unpacking
  • Python Implementations

Useful for hiring

  • Python Developer (0-3 years experience)
  • Python Engineer
  • Python Coder

Start hiring job-fit candidates using this assessment

GET A DEMO

"Finding quality talent is a challenge more so when you consider the sheer number of resumes we get each year. To top this, the time we spent on our recruitment process was humongous. Interview Mocha helped us to cut down on our candidate filtration time by 40%, making it our preferred assessment tool."

Pedro Furtado, Altran,
Capacity Manager
Question

What gets printed (with python version 3.X) assuming the user enters the following at the prompt?
#: foo

a = input("#: ")

print a

Answer
    • f

    • foo

    • Not a number

    • An exception is thrown

Question

What gets printed?

kvps = { '1' : 1, '2' : 2 , '3' : 3, '4' : 4, '5' : 5}
newData = { '1' : 10, '3' : 30 }

kvps.update(newData)

x = sum(kvps.values())

print x

Answer
    • 15

    • 51

    • 150

    • An exception is thrown

Question

How do you create a package so that the following reference will work?

p = mytools.myparser.MyParser()

Answer
    • Declare the myparser package in mytools.py

    • Create an __init__.py in the home dir

    • Inside the mytools dir create a __init__.py and myparser.py

    • Create a myparser.py directory inside the mytools directory

    • This can not be done

Test details:

This Python technical test enables employers to identify & hire Python coder by evaluating working skills and job readiness. For this reason, the emphasis is on evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Duration: 20 minutes 
Questions: 10 


The combination of Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates

Test description:

Python Online Quiz helps Recruiters and Hiring managers in assessing the Python skills of candidates to hire as Python coder. Python is high-level, general purpose and dynamic programming language. It is processed at the run time by the interpreter and it supports multiple programming paradigms. Python has automatic memory management system with the large comprehensive standard library. This Python online quiz test is specially designed to check application, practical skills of Python Coder – as per Industry Standards.
 
The Python quiz contains questions on following Topics:
 

  • Python Basics

  • Arithmetic operations

  • Data Types

  • Data Structures

  • List Methods

  • String Methods

  • Standard Library & Object-Oriented Programming 


Online Python quiz test is designed & validated by our experienced subject matter experts (SME)s. Employers can ask the candidate to appear for this Python quiz online. Using powerful reporting, you can have a detailed analysis of the test results to help you make a better hiring decision and predict the candidate’s performance.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO