Python Basic MCQ

Programming Language > Python Programming Language

Master Python Basics with Our Comprehensive Collection of MCQ Questions - Whether you're a beginner looking to get started with Python or an experienced coder looking to brush up on your skills, our Python basic MCQ questions can help. With a wide range of topics covered, from data types and variables to loops and control structures, you can test your knowledge, identify areas for improvement, and take your Python skills to the next level. Start your journey to becoming a Python pro today by visiting our site and getting started.

In this section you will learn basic MCQ questions of python programming language


➲ Python Basic MCQ - Quiz

  • A .python
  • B .pe
  • C .py
  • D .pi
  • A Indigenous Development Lab
  • B Integrated Development Environment
  • C Integrated Developers Local Environment
  • D Integrated Development and Learning Environment
  • A print
  • B display
  • C run
  • D output
  • A {
  • B %
  • C *
  • D #
  • A user
  • B enter
  • C input
  • D value
  • A Floating Decimal
  • B Text String
  • C Boolean Value
  • D Integer
  • A backslash t
  • B backslash n
  • C backslash s
  • D backslash r
  • A sep is !
  • B separate = !
  • C sep >> '!'
  • D sep = '!'
  • A Semantic error
  • B Syntax error
  • C Runtime error
  • D All type of errors
  • A Semantic error
  • B Syntax error
  • C Runtime error
  • D All type of errors
  • A Semantic error
  • B Syntax error
  • C Runtime error
  • D All type of errors
  • A HELP
  • B save
  • C help()
  • D help
  • A High level
  • B Low level
  • C Top level
  • D Bottom level
  • A Python - the reptile
  • B Monty Python
  • C A pet
  • D A company
  • A Bill Gates
  • B Guido Van Rossum
  • C Larry Page
  • D Jeff Bezos
  • A Dynamic typing
  • B Static typing
  • C Slow typing
  • D Auto typing
  • A ! symbol
  • B Double quotes
  • C Single quotes
  • D Either single quotes or double quotes
  • A P = 'python' * int('1')
  • B P = 'python' + 1
  • C P = 'python' + str(1)
  • D P = 'python' * 1
  • A print("Hello World!")
  • B print "Hello World!"
  • C print("Hello World!")!
  • D print("Hello World!"):
  • A Three braces {{{ }}}
  • B Three Colons ::: :::
  • C Three hashes ### ###
  • D Three Quotes ''' '''
  • A y ran for x minutes
  • B y ran for 90 minutes
  • C I ran for 90 minutes
  • D I ran for x minutes
  • A ran for 60 minutes
  • B she ran for 60 minutes
  • C She ran for 60 minutes
  • D x ran for 60 minutes
  • A ran for 75 minutes
  • B ran for 60 minutes
  • C ran for 135 minutes
  • D y ran for 60 minutes
  • A He ran for 7 minutes for 7 days
  • B He ran for 6 minutes for 6 days
  • C He ran for 6 minutes for 7 days
  • D He ran for 7 minutes for 6 days
  • A We can not convert Python 2 program to Python 3 program
  • B We can not convert Python 3 program to Python 2 program
  • C We can convert Python 2 program to Python 3 program
  • D We can convert Python 3 program to Python 2 program
  • A Displays a tab
  • B Displays 5 spaces
  • C Displays a newline
  • D Displays 10 quotes
  • A 'yes', 'may be', 'no'
  • B 'no', 'may be', 'yes'
  • C ['no', 'may be', 'yes']
  • D ['yes', 'may be', 'no']
  • A Braces
  • B Indentation
  • C Commas
  • D Expressions
  • A Guido van Rossum
  • B Rasmus Lerdorf
  • C Wick van Rossum
  • D Niene Stom
  • A 1995
  • B 1972
  • C 1981
  • D 1989
  • A .py
  • B .python
  • C .p
  • D None of these
  • A 2008
  • B 2000
  • C 2010
  • D 2005
  • A Key
  • B Brackets
  • C Indentation
  • D None of these
  • A /
  • B //
  • C #
  • D !
  • A Classes are real-world entities while objects are not real
  • B Objects are real-world entities while classes are not real
  • C Both objects and classes are real-world entities
  • D All of the above
  • A Object
  • B Function
  • C Attribute
  • D Argument
  • A To identify the variable
  • B It confuses the interpreter
  • C It indicates a private variable of a class
  • D None of these
  • A val
  • B raise
  • C try
  • D with
  • A All variable names must begin with an underscore.
  • B Unlimited length
  • C The variable name length is a maximum of 2.
  • D All of the above
  • A Alternative to if-else
  • B Switch statement
  • C If-then-else statement
  • D immediate if
  • A Shows a warning
  • B Prompts to complete the statement
  • C Throws an error
  • D Ignores the statements
  • A Keywords
  • B Data types
  • C Declaration statements
  • D Prototypes
  • A Preprocessor
  • B Triggering Event
  • C RMI
  • D Function/Method
  • A Mutable variable
  • B Dynamic variable
  • C Volatile variable
  • D Immutable variable
  • A 00
  • B 0x
  • C 0X
  • D Both 0x and 0X
  • A Prints an exception error
  • B Prints an overflow error
  • C Displays "Infinity"
  • D Prints the value as such
  • A Syntax error
  • B Missing of semicolons
  • C Division by zero
  • D Missing of Bracket
  • A toExponential()
  • B toFixed()
  • C toPrecision()
  • D toLocaleString()