GoConqr has a new look! Let us know what you think.

Quiz

CST 100 Midterm

Kaitlin Troska 27 questions

Take the quiz

Questions in this quiz (27)

  1. 1What is the output:
    x =49
    if x!=0:
    print("exclamation")
    else:
    print("no exclamation")
    1. Aexclamation
    2. Bno exclamation
    3. Cerror
    4. Ddoesn't print anything
  2. 2By convention python scripts are stored as text files with extension?
    1. A.py
    2. B.p
    3. C.python
    4. D.pyt
  3. 3Python is considered an ________ language
    1. Acomposed
    2. Binterpreted
    3. Cinteractive
    4. Dcompied
  4. 4At python language interpreter's prompt, consider >>> 3 + 2  if above input is given and enter is hit then output should be ?
    1. A2
    2. B3
    3. C3+2
    4. D32
    5. E5
    6. Fcompiling...
  5. 5What is the output:
    number = 99
    def check_x():
        if False:
              print(“number is greater")
        elif False:
              print("number is less ")
        else:
              print("number is equal to")
                   
    check_x()
    1. Anumber is greater
    2. Bnumber is less
    3. Cnumber is equal to
    4. Dno output will be printed
  6. 6What is the output:
    x =49
    if x >= 49:
    print(“XLIX")
    elif x!=0:
    print("exclamation")
    else:
    print("no exclamation")
    1. Aexclamation
    2. Bno exclamation
    3. CXLIX
    4. Ddoesn't print anything
  7. 7What is the output:
    x =49
    if x!=0:
    print("exclamation")
    else:
    print("no exclamation")
    1. Aexclamation
    2. Bno exclamation
    3. Cerror
    4. Ddoesn't print anything
  8. 8What is the output:
    >>> greeting = 'Hello World'
    >>> greeting[0] = 'J'
    1. AHello World
    2. BJello World
    3. CError
    4. Dnull
  9. 9What is the output:
    x = 1
    for i in range(2):
         for j in range(2):
                x += 1
    print(x)
    1. AThis will result in an error
    2. B4
    3. C3
    4. D1
    5. E5
  10. 10for i in range (2) :
          for j in range (2) :
                 print(i,j)
    1. A0 0
      1 1
      2 2
    2. B0 0
      0 1
      1 0
      1 1
    3. C0 0
      0 1
      0 2
      1 0
      1 1
      1 2
    4. D0 0
      0 1
      0 2
      1 0
      1 1
      1 2
      2 0
      2 1
      2 2

Information

Description
Quiz on CST 100 Midterm, created by Kaitlin Troska on 12/02/2016.
Language
English
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?