¡GoConqr estrena diseño! Cuéntanos qué te parece.

Test

CST 100 Midterm

Kaitlin Troska 27 preguntas

Hacer el test

Preguntas del test (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

Información

Descripción
Test sobre CST 100 Midterm, creado por Kaitlin Troska el 12/02/2016.
Idioma
English
Visitas
1
Valoración
Aún sin valoraciones
Valora este test
Valora este test

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?