Introduction to Python Quiz

Pre-Quiz


Q1 – Identify which of the following is an interpreted language.




Q2 – Python syntax is case-sensitive. State true or false.




Q3 – Select the command to be used to run the python script le named t.py.




Q4 – Select the method that can be used to create a directory.




Q5 – Name the creator of python.





Practice Session -Introduction to Python and Data Types


Q1 – Write the code to display the Python version by importing sys module.

import sys

sys.version


Q2 – How will you display the info on oat datatype by importing sys module?

import sys

sys.float_info


Q3 – The variable ‘str1’ is assigned the value “123” as string. How will you convert this string into an integer? Write the code:

str1=”123″

int(str1)


Q4 – If 100 divided by 3 should print the oor value, what operator should you use ? Write the expression with appropriate operator.

100//3



Post-Quiz


Q1 – In Python, recell who detects the syntax error and when




Q2 – Identify the symbol that a Python single line comment begins with.




Q3 – Identify the style that the python paragraph comment users.




Q4 – Select the command to be used to start Python from the command prompt.




Q5 – Select the correct code.

A.
print(“Programming is fun”)
 print(“Python is fun”)

B.
print(“Programming is fun”)
print(“Python is fun”)

C.
print(“Programming is fun)
print(“Python is fun”)

C.
print(“Programming is fun”)
nbsp;print(“Python is fun)





Check Your Understanding


Q1 – Python is a _________ programming language.




Q2 – In Python, the type ‘oat’ cannot have null values. State whether ‘True’ or ‘False’.




Q3 – A variable which has not been dened with a value yet must be specied as None


Q4 – Choose the correct options which returns true value.




35 thoughts on “Introduction to Python Quiz”

  1. Woah! I’m really enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very difficult to get that “perfect balance” between superb usability and appearance. I must say you have done a superb job with this. Additionally, the blog loads very fast for me on Chrome. Outstanding Blog!

  2. This is the fitting blog for anybody who needs to search out out about this topic. You understand a lot its virtually exhausting to argue with you (not that I actually would want…HaHa). You positively put a brand new spin on a topic thats been written about for years. Great stuff, just nice!

  3. I’ve been exploring for a bit for any high quality articles or blog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this website. Reading this info So i’m happy to convey that I’ve a very good uncanny feeling I discovered just what I needed. I most certainly will make certain to don’t forget this web site and give it a glance regularly.

  4. With havin so much content do you ever run into any issues of plagorism or copyright violation? My blog has a lot of unique content I’ve either written myself or outsourced but it seems a lot of it is popping it up all over the web without my agreement. Do you know any ways to help reduce content from being stolen? I’d genuinely appreciate it.

  5. Magnificent goods from you, man. I’ve understand your stuff previous to and you are just extremely wonderful. I really like what you have acquired here, certainly like what you’re saying and the way in which you say it. You make it entertaining and you still care for to keep it smart. I cant wait to read much more from you. This is really a wonderful website.

  6. Undeniably believe that which you stated. Your favourite reason seemed to be on the web the simplest thing to consider of. I say to you, I definitely get irked while other people think about worries that they just don’t realize about. You controlled to hit the nail upon the top and also outlined out the entire thing with no need side effect , people can take a signal. Will likely be back to get more. Thanks

  7. I believe this is among the most significant info for me. And i am glad reading your article. However wanna observation on few common issues, The website style is wonderful, the articles is truly nice : D. Good job, cheers

  8. I’m impressed, I have to say. Actually hardly ever do I encounter a weblog that’s each educative and entertaining, and let me let you know, you might have hit the nail on the head. Your concept is outstanding; the problem is one thing that not sufficient individuals are talking intelligently about. I am very happy that I stumbled across this in my seek for one thing regarding this.

  9. I know this if off topic but I’m looking into starting my own weblog and was curious what all is needed to get setup? I’m assuming having a blog like yours would cost a pretty penny? I’m not very internet savvy so I’m not 100 positive. Any tips or advice would be greatly appreciated. Appreciate it

  10. Whats up this is kind of of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

  11. There are some attention-grabbing deadlines on this article but I don’t know if I see all of them heart to heart. There’s some validity but I’ll take maintain opinion till I look into it further. Good article , thanks and we wish extra! Added to FeedBurner as well

  12. Very efficiently written story. It will be beneficial to everyone who employess it, as well as myself. Keep doing what you are doing – looking forward to more posts.

  13. Hello there, You’ve performed a fantastic job. I’ll definitely digg it and in my opinion suggest to my friends. I am sure they’ll be benefited from this web site.

Leave a Comment

Your email address will not be published. Required fields are marked *

x