Visual Basic

Description

Examen de Visual Basic
rafgss
Quiz by rafgss, updated more than 1 year ago
rafgss
Created by rafgss over 8 years ago
17
0

Resource summary

Question 1

Question
¿Esto es una CheckBox?
Answer
  • True
  • False

Question 2

Question
Seleccione la(s) correctas de ingresar el código de limpiar dentro de un botón:
Answer
  • txt.text=" "
  • txt.Clear()
  • txt.Clear
  • txt.text=

Question 3

Question
Completa el código; [blank_start]Dim[blank_end] n1, n2, n3, n4, v, p [blank_start]As[blank_end] Double n1 = TextBox1.Text n2 = [blank_start]TextBox2[blank_end].Text n3 = TextBox3.Text n4 = TextBox4.Text v = n1 [blank_start]If[blank_end] n2 < v Then v = n2 End If If [blank_start]n3[blank_end] < v Then v = n3 End If If n4 < v [blank_start]Then[blank_end] v = n4 [blank_start]End[blank_end] If p = (n1 + n2 + n3 + n4 - [blank_start]v[blank_end]) / 3 [blank_start]TextBox5.Text = p[blank_end]
Answer
  • As
  • TextBox2
  • TextBox5.Text = p
  • v
  • If
  • Then
  • End
  • n3
  • Dim

Question 4

Question
¿Este código es para colocar mensajes en el programa? MessageBox.Show()
Answer
  • True
  • False

Question 5

Question
Complete; Dim n1, n2 As [blank_start]Double[blank_end]n1 = [blank_start]TextBox1[blank_end].Text n2 = TextBox2.Text If n1 > n2 Then MessageBox.Show("El número mayor es "& [blank_start]n1[blank_end]) Else [blank_start]MessageBox[blank_end].Show("El número mayor es "& n2) End If
Answer
  • MessageBox
  • n1
  • TextBox1
  • Double

Question 6

Question
Seleccione la respuesta correcta; Dim C As [blank_start]Integer[blank_end]
Answer
  • Integer
  • Double

Question 7

Question
¿Es un Progress Bar?
Answer
  • True
  • False

Question 8

Question
Dim x, y, z, r As [blank_start]Double[blank_end] x = [blank_start]TexBox1.Text[blank_end] [blank_start]y[blank_end] = TexBox2.Text z = TexBox3.Text r = ((2 * [blank_start]Math.[blank_end]Pow(x, 4)) + [blank_start]3 *[blank_end] Math.Pow(x, 2) * [blank_start]Math.Pow[blank_end](y, 2)) / (y+(Math.[blank_start]Sqrt[blank_end](4 * x * y * Math.Pow[blank_start](z, 2)[blank_end])) - 2 * z) TexBox4.Text = [blank_start]r[blank_end]
Answer
  • TexBox1.Text
  • y
  • Math.
  • 3 *
  • Math.Pow
  • Sqrt
  • (z, 2)
  • r
  • Double

Question 9

Question
El siguiente código sirve para resolver ecuaciones de 3 variables? Dim x, y, z, r As Double x = TexBox1.Text y = TexBox2.Text z = TexBox3.Text r = ((2 * Math.Pow(x, 4)) + 3 * Math.Pow(x, 2) * Math.Pow(y, 2)) / (y+(Math.Sqrt(4 * x * y * Math.Pow(z, 2))) - 2 * z) TexBox4.Text = r
Answer
  • True
  • False

Question 10

Question
Complete; [blank_start]If[blank_end] Me.BackColor = Color.[blank_start]Blue[blank_end] Then Me.BackColor = Color.Red ElseIf Me.[blank_start]Back[blank_end]Color = [blank_start]Color[blank_end].Red Then [blank_start]Me.BackColor[blank_end] = Color.Blue
Answer
  • Color
  • Blue
  • Me.BackColor
  • If
  • Back

Question 11

Question
El siguiente fragmento de código sirve para cambiar de color el formulario; If Me.BackColor = Color.Blue Then Me.BackColor = Color.Red ElseIf Me.BackColor = Color.Red Then Me.BackColor = Color.Blue
Answer
  • True
  • False

Question 12

Question
¿El siguiente código sirve para calcular promedios y eliminar la nota menor? Dim n1, n2, n3, n4, v, p As Double n1 = TextBox1.Text n2 = TextBox2.Text n3 = TextBox3.Text n4 = TextBox4.Text v = n1 If n2 < v Then v = n2 End If If n3 < v Then v = n3 End If If n4 < v Then v = n4 End If p = (n1 + n2 + n3 + n4 - v) / 3 TextBox5.Text = p
Answer
  • True
  • False

Question 13

Question
[blank_start]Dim[blank_end] n1, n2, n3, n4, v, p As [blank_start]Double[blank_end] n1 = [blank_start]Text[blank_end]Box1.Text [blank_start]n2[blank_end] = TextBox2.Text n3 = TextBox3.Text [blank_start]n4[blank_end] = [blank_start]TextBox4[blank_end].Text v = n1 [blank_start]If[blank_end] n2 < v [blank_start]Then[blank_end] v = n2 End If If n3 < v Then v = n3 [blank_start]End[blank_end] If If n4 < v Then v = n4 End If p = (n1 + n2 + n3 + n4 - v) / 3 [blank_start]TextBox5.Text = p[blank_end]
Answer
  • If
  • End
  • TextBox5.Text = p
  • TextBox4
  • n4
  • Double
  • Text
  • Then
  • n2
  • Dim

Question 14

Question
¿Está bien estructurado este código? Dim n1, n2 As Doublen1 = TextBox1.Text n2 = TextBox2.Text If n1 > n2 Then MessageBox.Show("El número mayor es "& n1) Else MessageBox.Show("El número mayor es "& n2) End If
Answer
  • True
  • False

Question 15

Question
[blank_start]Dim[blank_end] C As [blank_start]Intinger[blank_end]C = 0 If [blank_start]CheckBox1[blank_end].Checked Then C = C + 1 If CheckBox2.[blank_start]Checked[blank_end] Then [blank_start]C = C + 1[blank_end] End If If CheckBox3.Checked [blank_start]Then[blank_end] C = C + 1 End If MessageBox.Show("Han sido seleccionados " + Strc(C) + [blank_start]" checkbox"[blank_end]) [blank_start]End If[blank_end]
Answer
  • Dim
  • CheckBox1
  • Intinger
  • Checked
  • C = C + 1
  • Then
  • " checkbox"
  • End If

Question 16

Question
¿El siguiente código esta bien estructurado? Dim C As Intinger C = 0 If CheckBox1.Checked C = C + 1 CheckBox2.Checked Then C = C + 1 End If If CheckBox3.Checked Then C = C + 1 MessageBox.Show("Han sido seleccionados " + Strc(C) + " checkbox") End If
Answer
  • True
  • False

Question 17

Question
Dim C As IntingerC = 0 If Check[blank_start]Box1[blank_end].Checked Then C = C + 1 If Check[blank_start]Box2[blank_end].Checked Then C = C + 1 End If If CheckBox3.[blank_start]Checked[blank_end] Then C = C + 1 End If [blank_start]MessageBox[blank_end].Show("Han sido seleccionados " + Strc(C) + " checkbox") End If
Answer
  • Box1
  • Box2
  • Box3
  • Box2
  • Box1
  • Box3
  • Checked
  • Selec
  • MessageBox
  • Form2
  • Form3

Question 18

Question
¿Qué opciones podemos ver en el siguiente Form?
Answer
  • Label
  • TextBox
  • Button
  • Progress Bar
  • Check Box
  • Combo Box

Question 19

Question
Complete CheckBox1.
Answer
  • Show
  • Checked
  • Text

Question 20

Question
¿Cómo se llama ésta parte de Visual Basic?
Answer
  • ToolBox
  • Form
  • Orígenes de datos
Show full summary Hide full summary

Similar

Operadores Python
Giovanni Sanhuez
EXAMEN DE MATEMÁTICAS 1ER GRADO SECUNDARIA 5to Bim
FELIPE SOLTERO
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
Lenguajes de programación
Andrea Martz
Programación
lourdes toralla
PROGRAMACIÓN ORIENTADA A OBJETOS - TERCER CORTE
Jose Anacona Pira
Exani II - Estructura
Gastón Amato
prueba 1
ANGELA HIDALGO