Evaluación IV 5tos A

Description

Evaluación de programación para alumnos de 5to Admon y PC
Miguel Arias
Quiz by Miguel Arias, updated more than 1 year ago
Miguel Arias
Created by Miguel Arias about 9 years ago
105
0

Resource summary

Question 1

Question
print("Primer Programa") a=[blank_start]int[blank_end](input("dame un numero: ")) b=85 c= a+b d=[blank_start]a*b[blank_end] print("El resultado de la suma es ",[blank_start]c[blank_end]) print("El resultado de la multiplicación es ",[blank_start]d[blank_end])
Answer
  • int
  • INT
  • Ini
  • Inpuc
  • d
  • x
  • w
  • a*b
  • a/b
  • a#b
  • c
  • t
  • u
  • i

Question 2

Question
print("Primer Programa") [blank_start]a[blank_end]=int(input("dame un numero: ")) i=1 [blank_start]while[blank_end] (i<=a): print(i) [blank_start]i=i+1[blank_end]
Answer
  • a
  • w
  • t
  • z
  • for
  • while
  • if
  • do
  • i=i+1
  • a++
  • i--
  • a=a+1

Question 3

Question
[blank_start]a[blank_end]=int(input("dame un numero: ")) i=1 while (i<=a)[blank_start]:[blank_end] if i[blank_start]%[blank_end]2==0: print([blank_start]i[blank_end]) i=[blank_start]i+1[blank_end]
Answer
  • a
  • :
  • %
  • i
  • i+1

Question 4

Question
a=[blank_start]int[blank_end](input("dame un numero: ")) i=1 while (i<=a): [blank_start]if[blank_end] i%2[blank_start]![blank_end]=0: print([blank_start]i[blank_end]) i=i+1
Answer
  • do
  • Float
  • Integer
  • int
  • !
  • =
  • +
  • ?
  • a
  • i
  • x
  • c
  • if
  • while
  • For
  • do

Question 5

Question
a=int(input("dame un numero: ")) b=int(input("dame un numero: ")) while ([blank_start]a<=b[blank_end]): if a[blank_start]%[blank_end]2==0: print([blank_start]a[blank_end]) [blank_start]a=a+1[blank_end]
Answer
  • a<=b
  • %
  • a
  • a=a+1

Question 6

Question
for [blank_start]i[blank_end] in range(0,[blank_start]4+1[blank_end]): vec2[i]=[blank_start]int[blank_end](input("Dame un valor"))
Answer
  • 4+1
  • i
  • int

Question 7

Question
vec1=[[blank_start]0,0,0,0,0[blank_end]] for i [blank_start]in[blank_end] range(0,4+1): [blank_start]vec1[blank_end][i]=int(input("Dame un valor"))
Answer
  • vec1
  • 0,0,0,0,0
  • in

Question 8

Question
[blank_start]vec1[blank_end]=[0,0,0,0,0] vec2=[0,0,0,0,0] vec3=[0,0,0,0,0] [blank_start]for[blank_end] i in range(0,4+1): vec1[i]=int(input("Dame un valor")) for i in range(0,4+1): vec2[[blank_start]i[blank_end]]=int(input("Dame un valor")) for i in range(0,4+1): vec3[i][blank_start]=[blank_end]vec1[i]+vec2[i] for i in range(0,4+1): print([blank_start]vec3[i][blank_end])
Answer
  • vec1
  • Vec
  • MAt
  • for
  • while
  • if
  • i
  • c
  • a
  • w
  • vec3[i]
  • vec1[i]
  • vec[a]
  • =
  • ==
  • !=

Question 9

Question
Declaración de vector de 5 posiciones en blanco vec3=[[blank_start]0,0,0,0,0[blank_end]]
Answer
  • 0,0,0,0,0

Question 10

Question
mat=[blank_start][0,0],[0,0][blank_end] for [blank_start]j[blank_end] in range(0,1+1): for [blank_start]i[blank_end] in range(0,1+1): mat[j][i]=[blank_start]int[blank_end](input("Dame un valor")) for j in range(0,1+1): for i in range(0,1+1): [blank_start]print[blank_end]([blank_start]mat[j][i][blank_end])
Answer
  • [0,0],[0,0]
  • 0 0 0 0
  • 1 1 1 1
  • j
  • k
  • l
  • i
  • g
  • ñ
  • mat[j][i]
  • vect[0][0]
  • mat=[0,0],[0,0]
  • for j in range(0,1+1):
  • int
  • ini
  • do
  • print
  • PRint
  • Fint
Show full summary Hide full summary

Similar

Operadores Python
Giovanni Sanhuez
Mis Recursos de Programación
maya velasquez
FUNDAMENTOS DE REDES DE COMPUTADORAS
anhita
Editor Dibujo Paint
gladiscj
Herramientas de Software para Comercio y Finanzas
mishelleisabel
Objetos mutables e inmutables
Benjamin Villalpando
Evaluación III Quintos
Miguel Arias
PROGRAMACIÓN ORIENTADA A OBJETOS - TERCER CORTE
Jose Anacona Pira
Parcial Fundamento de Programación
ALBERTO MANUEL PATERNINA LEON
Lenguaje de programación.
Lina Melo
Test PYTHON
peralesmagana