I want to make a multiple choice quiz game based on languages on python but I have no experience in pygame but experience in GML. Powerful and simple online compiler, IDE, interpreter, and REPL. Code, compile, and run code in 50+ programming languages: Clojure, Haskell, Kotlin (beta),.
Python Advanced Tutorial
Python Useful Resources
Selected Reading
Following quiz provides Multiple Choice Questions (MCQs) related to Python. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.
Q 1 - What is output for −
' ' in 'python' ?
Answer : D
Explanation
To strings connected by ‘in’ operator gives true and false.
Q 2 - What is the output of following code −
Answer : D
Explanation
This is nested for loop. The output of first for loop will be the value for the next loop.
Q 3 - Pylab is a package that combine _______,________&______ into a single namespace.
Answer : A
Explanation
pylab package in python combines numpy, scipy & matplotlib into a single namespace.
Q 4 - What is output for −
2 * 2 **3
Answer : C
Explanation
2**3 gives 2*2*2 i.e. 8, then 2*8 gives 16, since order of precedence is ** then*. ** implies ‘‘ raise to power’’.
Q 5 - What is the output of the following code?
Answer : B
Explanation
None is printed because function does not return the value.
Q 6 - What happens in the below code?
Answer : D
Explanation
Reason being that i is initiated with self thus making it a instantiate variable of that class which cannot be inherited by the above way.
Q 7 - Discuss the outcome of the code?
Answer : B
Explanation
A function call is said to be tail recursive if there is nothing to do after the function returns except return its value.
Q 8 - Select the correct function among them which can be used to write the data to perform for a binary output?
Q 9 - Select the correct option to draw a rectangle centred at 50,50 with width and height as 50, 70 respectively.
Q 10 - What is the value of a, b, c in the given below code?
b= 4, 'TutorialsPoint'
c= 4, 'TutorialsPoint'
b= 'TutorialsPoint'
c=4, 'TutorialsPoint'
b= 'TutorialsPoint'
c=4, 'TutorialsPoint'
b= 'TutorialsPoint'
c= NULL.
A simple quiz game built using Python
Game Instructions
Check your Python version by typing python --version in terminal/cmd prompt.If version is python 3.x you can continue.If version is python 2.x, try: python3 --version.If you receive a version replace 'python' with 'python3' for the rest of these instructions below.
Start the game: type python(3) question.py
The game will run in the terminal. Answer the first question - whether you want to start the game. Select(a) Start the game(b) Exit.
Pick your interest(a) Science (b) History of India (c) Commerce (d)Technology (e)World GKYou'll be presented with domain specific questions.
Read the general instructions prompt for point system information and how to answer the questions. Each question carries 2 points and there is a negative marking of -1 per question.
Answer each question. At the end of the game, you will be provided with the feedback of your responses. If incorrect, the correct answer will be displayed. You will also be provided a little insight into the question and your final score will be revealed to you.
The game will exit on its own. To play again, follow instructions from step 2.
If you find any bugs in the game, please visit https://github.com/cherryWood55/Quiz-Game/issues/ to report the issue. Enjoy the game!
If you like it, do not forget to give your feedback of this repository!