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

Quiz

Fundamentos de Python: variables, input, if, for y while

Maite Méndez1344 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1¿cómo puedo declarar una variable en python ?
    1. Aa=(15);
    2. Ba=10
    3. Ca/10
  2. 2¿Qué funsión puede imprimir un mensaje en python?
    1. Astring("Hola mundo")
    2. BPrint("Hola mundo")
    3. Cint("Hola mundo")
  3. 3¿Cómo transformar a número entero utilizando la función input en python?
    1. Aa=int(input("ingrese número"))
    2. Ba=input(int("ingrese número"))
    3. Ca=int(imput("ingrese número"))
  4. 4¿Cómo puedo representar los números decimales en python, cuál función utilizo?
    1. Astring
    2. Bfloat
  5. 5¿Cuál es la estructura del ciclo for en python?
    1. Afor I in [input]:
      Instrucción
    2. Bfor I in [rango]:
      Instrucción
    3. Cfor I in [string]
      Instrucción
  6. 6El siguiente código con ciclo while en python indica números pares de 1 a10, ¿Qué código es correcto?
    1. Ai = 1
      while i<=10:
      if i% 2==0:
      print("es par",i)
      else:
      print("es impar",i)
      i=i+1
    2. Bi = 1
      while i<=11:
      if i% 2==1:
      print("es par",i)
      else:
      print("es impar",i)
      i=i+2
    3. Ci = 1
      while i<=9
      if i% 2==0
      print("es par",i)
      else:
      print("es impar",i)
      i=i+2
  7. 7¿cuál es la estructura del ciclo if en python?
    1. Aif <condición> :
      AV
      else:
      AF
    2. Bif <condición> :
      AV
      else
      AF
    3. Cif <condición>
      AV
      elss
      AF
  8. 8El siguiente código con ciclo while en python indica los números de 1 a10, ¿Qué código es correcto?
    1. Ai=1
      while i <= 10:
      print(i)
      i=i+1
    2. Bi=1
      while i <= 10;
      print(i)
      i=i+1
    3. Cwhile i <= 10
      print(i)
      i=i+1
  9. 9¿Qué función puedo utilizar en python para hacer una cadena de texto en vez de solo input?
    1. Afloat
    2. Bstring
  10. 10¿Qué signo utilizo para declarar una variable en python?
    1. A=
    2. B%
    3. C$

Information

Description
Quiz on Untitled, created by Maite Méndez1344 on 05/08/2015.
Language
Español
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

More on Python

Feedback

What is it about?

What do you think of the new look?

How do you like it?