IT 116: Introduction to Scripting
Class 6 Ungraded Quiz

  1. Write a Python statement that prints the word "hello" but does not advance to the next line


  2. Write a Python statement that prints
    1, 2, 4

  3. Write a Python expression that concatenates the string "My name is " with the variable name.


  4. Write a Python expression that concatenates the string "The rate is " with the variable rate which is of type float.


  5. Write a Python expression that concatenates the string "The distance is " with the expression
    speed * time

  6. Write a single print statement, without using triple quotes, which prints
    Line 1
    Line 2
    Line 3



  7. Write a single print statement, without using triple quotes or concatenation, which prints
    The path is C:\temp\memo.txt.

  8. Write a single print statement, without using triple quotes or concatenation, which prints
    She said "I'm OK"