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

Quiz

EVALUACIÓN DE SISTEMAS 11° 2P

Bryhan Rodriguez 10 questions

Take the quiz

This quiz has a time limit, so it opens in the usual player.

Questions in this quiz (10)

  1. 1La instrucción que se utiliza para iniciar pygame es: [blank_start]Pygame.init().[blank_end]

    Image for question 1
    1. APygame.init().
    2. BInput.
    3. CReturn 0.
    4. DIf – elif.
  2. 2la siguiente lineas de código nos ayudan a iniciar e importar pygame en python.
    import pygame
    from pygame.[blank_start]locals[blank_end] import *
    Image for question 2
    1. Alocals
  3. 3Las constantes para crear una ventana son:
    WIDTH = 640
    [blank_start]HEIGHT[blank_end] = 480
    Image for question 3
    1. AHEIGHT
  4. 4Las imágenes de pygame se miden por [blank_start]Pixeles[blank_end].Image for question 4
    1. APixeles
    2. BPulgadas
    3. CAlto y Ancho
    4. DDiametro
  5. 5
    1. def load_image(filename, transparent=False):
    2. try: image = pygame.image.load(filename)
    3. except pygame.error, message:
    4. raise SystemExit, message
    5. image = image.convert()
    6. if transparent:
    7. color = image.get_at((0,0))
    8. image.set_colorkey(color, RLEACCEL)
    9. return image

    La línea 5 convierte la imagen al tipo interno de [blank_start]Pygame[blank_end] que hace que sea mucho más eficiente.
    Image for question 5
    1. APygame
    2. BPython
    3. CPixeles
    4. DPulganas
  6. 61. def load_image(filename, transparent=False):
    2. try: image = pygame.image.load(filename)
    3. except pygame.error, message:
    4. raise SystemExit, message
    5. image = image.convert()
    6. if transparent:
    7. color = image.get_at((0,0))
    8. image.set_colorkey(color, RLEACCEL)
    9. return image

    líneas 7 y 8, obtiene el [blank_start]color[blank_end] del pixel (0, 0) de la imagen (esquina superior izquierda)
    Image for question 6
    1. Acolor
  7. 71. def load_image(filename, transparent=False):
    2. try: image = pygame.image.load(filename)
    3. except pygame.error, message:
    4. raise SystemExit, message
    5. image = image.convert()
    6. if transparent:
    7. color = image.get_at((0,0))
    8. image.set_colorkey(color, RLEACCEL)
    9. return image

    línea 9 [blank_start]retorna[blank_end] la imagen después de todo el proceso.
    Image for question 7
    1. Aretorna
    2. Bcomienza
    3. Csale
  8. 8La siguiente linea de código crea una ventana ¿Cual es la variable que falta?

    screen = pygame.[blank_start]display.set[blank_end]_mode((WIDTH, HEIGHT))
    Image for question 8
    1. Adisplay.set
  9. 9 líneas 3 y 4 manejan el [blank_start]error[blank_end] y salen del programa.Image for question 9
    1. Aerror
    2. Bcodigo
    3. Calto y ancho
    4. Dimport pygame
  10. 10La línea 2 asigna a la variable imagen a través de la función de [blank_start]pygame.image.load()[blank_end] Image for question 10
    1. Apygame.image.load()

Information

Description
Quiz on EVALUACIÓN DE SISTEMAS 11° 2P, created by Bryhan Rodriguez on 08/05/2018.
Language
Español
Views
450
Tags
apa
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?