mylvasquez18
Quiz by , created more than 1 year ago

Esta es una prueba corta de Visual basic

14
0
0
mylvasquez18
Created by mylvasquez18 over 8 years ago
Close

Prueba corta

Question 1 of 20

1

¿Es una acción que realiza el usuario hacia un objeto?

Select one of the following:

  • Boton

  • Evento

  • Radio

Explanation

Question 2 of 20

1

¿Controles que colocamos en un formulario que poseen propiedades, métodos y eventos se les llama?

Select one or more of the following:

  • Eventos

  • Boton

  • Objetos

  • Checkbox

Explanation

Question 3 of 20

1

¿Se produce al intentar grabar un registro que contenga algún campo vacío?

Select one or more of the following:

  • Error de campos

  • Introducir valores

  • Actualizacion

  • Mensaje de error

Explanation

Question 4 of 20

1

¿Para que se utiliza el CommandButton?

Select one or more of the following:

  • Crear eventos

  • Crear formularios

  • Crear botones

  • Crear Controles

Explanation

Question 5 of 20

1

¿Que realiza el siguiente codigo?

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
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
End Sub
End Class

Select one or more of the following:

  • Encuentra el mayor de 4 Valores

  • Calcula el promedio de los valores

  • Suma los 4 y los divide

  • Nada ya que el codigo esta mal escrito

Explanation

Question 6 of 20

1

¿Que realiza el siguiente codigo?

Public Class Form1

Private Sub Form1_mousedoubleclick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDoubleClick

If MeBackColor = Color.Blue
MeBackColor = Color.Red

ElseIf MeBackColor = Color.Red
MeBackColor = Color.Blue

End If
End Sub
End Class

Select one or more of the following:

  • Cambia de color de Rojo a Azul

  • Cambia de color de Azul a Rojo

  • Error ya que el codigo esta mal escrito

  • Cambia de Azul a Celeste

Explanation

Question 7 of 20

1

Fill the blank spaces to complete the text.

Rellena los espacios en blanco para completar el texto

Public Class Form3

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cod, , g, dpi, puesto, direccion, tel As
cod = TextBox1.Text
nomb = TextBox2.Text
dpi =
direccion = TextBox5.Text
tel = TextBox6.Text

RadioButton1. = True
puesto = "Administracion"

puesto = "Ventas"
End If

If RadioButton3.Checked = Then
g = "Hombre"
Else
g = "mujer"

Form4.
Form4.TextBox1.Text = TextBox1.Text
TextBox2.Text = TextBox2.Text
Form4.TextBox8.Text =

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
End

End Sub
End Class

Explanation

Question 8 of 20

1

Fill the blank spaces to complete the text.

Rellena los espacios en blanco

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Usuario, Clave As String
Usuario = TextBox1.Text
Clave = TextBox2.Text

Usuario = "Myldret" And Clave = "1807"
ProgressBar1.Value = 0.0
ProgressBar1. = 100

For contador = 1 To 100
contador = contador + 1
.Value = contador
Next

If ProgressBar1.Value = ProgressBar1.Maximum Then
MsgBox("Acceso Autorizado")

End If

ProgressBar1. = 0.0
ProgressBar1.Maximum = 100
contador = 1 To 100
contador = contador + 1
ProgressBar1.Value = contador

MsgBox("Usuario o Clave Incorrecta.")
TextBox1.Clear()
TextBox2.Clear()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
End

Explanation

Question 9 of 20

1

¿Es correcto el siguiente codigo?

Public Class Form4

Private Sub IngresoDeEmpleadosToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Form3.Show()

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim bonif, incent, Hextras, i, unif, ant, Odes, Ingreso, Egreso, total As Double

CheckBox1.Checked = True Then
bonif = 250
End If

CheckBox2.Checked
incent = 350
End If

CheckBox3.Checked
Hextras = 250
Hextras = TextBox4.Text * Hextras
End If

Ingreso = bonif + incent + Hextras + TextBox7.Text

If CheckBox4.Checked Then
i = 4.83 * TextBox7.Text

CheckBox5.Checked Then
unif = 150
End If

CheckBox6.Checked Then
ant = TextBox5.Text
End If

CheckBox7.Checked Then
Odes = TextBox6.Text
End If

Egreso = i + unif + ant + Odes

total = Ingreso - Egreso

Form5.Show()
Form.TextBox1.Text = TextBox1.Text
Form.TextBox2.Text = TextBox2.Text
Form.TextBox3.Text = TextBox8.Text
Form.TextBox5.Text = TextBox7.Text
Form.TextBox6.Text = bonif
Form.TextBox7.Text = incent
Form.TextBox8.Text = Hextras
Form.TextBox11.Text = i
Form.TextBox12.Text = unif
Form.TextBox13.Text = ant
Form.TextBox14.Text = Odes
Form.TextBox10.Text = total
Form.TextBox9.Text = Ingreso
Form.TextBox15.Text = Egreso

End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
End
End Sub
End Class

Select one of the following:

  • True
  • False

Explanation

Question 10 of 20

1

¿La extension de Textbox es .Text?

Select one of the following:

  • True
  • False

Explanation

Question 11 of 20

1

¿Visual basic es un lenguaje de programacion dirigido por formularios?

Select one of the following:

  • True
  • False

Explanation

Question 12 of 20

1

Fill the blank spaces to complete the text.

Rellena los espacios en blanco

Public Class Form4
Private Sub Button1_(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Click
n1, n2 As
n1 = TextBox1.Text
n2 = TextBox2.Text
n1 n2
MessageBox.Show("El número mayor es " n1)
Else
MessageBox.Show("El número mayor es " n2)

End Sub
End Class

Explanation

Question 13 of 20

1

¿El evento del boton es click?

Select one of the following:

  • True
  • False

Explanation

Question 14 of 20

1

¿La propiedad que se utiliza para cambiar el estilo de letra o de fuente es caption?

Select one of the following:

  • True
  • False

Explanation

Question 15 of 20

1

¿Es un documento, ya sea físico o digital, diseñado con el propósito de que el usuario introduzca datos estructurados?

Select one or more of the following:

  • Evento

  • Formulario

  • CommandButton

  • Tabla

Explanation

Question 16 of 20

1

¿Se utiliza generalmente para listar opciones y que el usuario pueda elegir entre ellas, y dependiendo del valor?

Select one or more of the following:

  • Caja

  • Listbox

  • Combobox

  • CheckBox

Explanation

Question 17 of 20

1

¿Es el que nos permite que un usuario pueda seleccionar una opción de entre varias?

Select one or more of the following:

  • Combobox

  • Caja

  • Button

  • Radio

Explanation

Question 18 of 20

1

¿Nos da el valor que se ha seleccionado del combo?

Select one or more of the following:

  • Style

  • Top

  • Text

  • List

Explanation

Question 19 of 20

1

¿El siguiente codigo es erroneo?

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim VSB, VDES As Double
VDES = 0
VSB = CDbl(TextBox4.Text)
If CheckBox1.Checked Then
VDES = VDES + VSB * 0.11
End If
If CheckBox2.Checked Then
VDES = VDES + 15
End If
If CheckBox3.Checked Then
VDES = VDES + CDbl(TextBox1.Text)
End If
TextBox2.Text = VDES
TextBox3.Text = CStr(VSB - VDES)
End Sub
Private Sub CheckBox3_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox3.CheckedChanged
TextBox1.Enabled = CheckBox3.Checked
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
TextBox1.Enabled = False
End Sub
Private Sub TextBox1_EnabledChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.EnabledChanged
TextBox1.Clear()
End Sub
End Class

Select one of the following:

  • True
  • False

Explanation

Question 20 of 20

1

¿ Es el que nos permite incluir palabras, letras o frases en la pantalla?

Select one or more of the following:

  • Textbox

  • Label

  • Caption

  • Name

Explanation