# Evaluación IV 5tos A

### Description

Evaluación de programación para alumnos de 5to Admon y PC
Quiz by Miguel Arias, updated more than 1 year ago
 Created by Miguel Arias over 8 years ago
97
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])
• 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]
• 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]
• 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
• 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]
• 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"))
• 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"))
• 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])
• 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]]
• 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])
• [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