Skip to content

Files

Latest commit

af7d95f · Feb 3, 2025

History

History

quiz

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 3, 2025
Feb 3, 2025

Chapter 1 Quiz

Please read the note carefully and try to solve the problem below:

Table of contents:

Quiz: Q0101

  1. Try to replicate the line below and change 'hello world' to [your name] and print it in the terminal.

    print("hello world")
  2. Try adding two numbers and print the value in the terminal. (example: print(5+6))

  3. Try adding more than 2 numbers and see the results Example: print(3+4+5)

  4. Try printing hello world without quotation '' or inverted comma and see if any error occurs Example: print(Hello World)

  5. If error occurs in any of the above step, please note the line number and the message where the exception is thrown.

Click to see the solution

Quiz: Q0102

  1. Print "Hello World" using print() function
  2. Comment the line from the above solution and try running the program again. Explain what happens and why it happens
  3. Create a multiline comment using Triple single ''' and double quotes """ and add your content.

Click to see the solution