Damaris Chavac
Quiz by , created more than 1 year ago

Prueba básica

38
0
0
Damaris Chavac
Created by Damaris Chavac almost 8 years ago
Close

Prueba visual basic

Question 1 of 20

1

¿Qué son las propiedades?

Select one of the following:

  • Un control es un elemento grafico que forma parte de una aplicación asi como: botones, cajas de texto, los graficos y muchos mas son controles para Visual Basic.

  • Todo control u objeto dentro de Visual Basic tiene sus propias propiedades, unas distintas de otras. Por lo general las propiedades de un objeto son datos que tiene valores lógicos (true, false). En fin son cualidades propias de cada control u objeto.

  • A los controles que colocamos en un formulario que poseen propiedades, métodos y eventos, se les llaman objetos y a las características propias de esos objetos se les llaman propiedades.

Explanation

Question 2 of 20

1

Para crear un boton de salida se utiliza el siguiente código:

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

Select one of the following:

  • True
  • False

Explanation

Question 3 of 20

1

Para realizar un menú necesitamos de la propiedad?

Select one or more of the following:

  • Label

  • ListBox

  • MenuStrip

Explanation

Question 4 of 20

1

Para ver si se registro correstamente un usuario está bien el siguiente código:

If (TextBox1.Text = "Damaris") And (TextBox2.Text = "1234") Then
ProgressBar1.Value = 0.0
ProgressBar1.Maximum = 100
End If

Select one of the following:

  • True
  • False

Explanation

Question 5 of 20

1

El siguiente código es correcto para poder crear el botón de imprimir:

Private Sub Printform()
Cursor.Current = Cursors.WaitCursor
With Me.PrintForm1
.PrintAction = Printing.PrintAction.PrintToPreview
.PrinterSettings.DefaultPageSettings.Landscape = True
.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)
End With
End Sub

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Call Printform()
End Sub

Select one of the following:

  • True
  • False

Explanation

Question 6 of 20

1

El siguiente código es el correcto para sumar una lista:

Dim suma As Double
suma = 0
For Each item As Object In Form7.ListBox3.Items
suma += Convert.ToDouble(item)
Next

Form7.TextBox1.Text = suma

Select one of the following:

  • True
  • False

Explanation

Question 7 of 20

1

Para poder volver lo que escribimos en una TextBox una contraseña necesitamos de la propiedad ?

Select one or more of the following:

  • Visible

  • PasswordChar

  • AllowDrop

Explanation

Question 8 of 20

1

¿Cuál código utilizamos para cambiar color a la TextBox?

Select one of the following:

  • TextBox5= Color.Blue

  • TextBox1.ForeColor = Color.Blue

  • TextBox5.Color = Color.Blue

Explanation

Question 9 of 20

1

Para limpiar una TextBox utilizamos el código:

Select one of the following:

  • TextBox1=0

  • TextBox1.Clear()

  • TextBox1.show()

Explanation

Question 10 of 20

1

Este código de suma es correcto:

Dim A, B, C, As Integer
A = TextBox1.Text
B = TextBox2.Text
C = A + B
TextBox3.Text = C

Select one of the following:

  • True
  • False

Explanation

Question 11 of 20

1

¿Para llamar un formulario usamos?

Select one of the following:

  • Public Class Form2

  • Form3.Show()

  • TextBox1.Clear()

Explanation

Question 12 of 20

1

Para hacer visible el checket utilizo:

TextBox5.Enabled = RadioButton3.Checked

Select one of the following:

  • True
  • False

Explanation

Question 13 of 20

1

Para ver la ganancia y precio de venta es verdadero este código:

Dim gan, tol, cam As Double
cam = Val(TextBox2.Text) / 100
gan = Val(TextBox1.Text) * cam
tol = gan + Val(TextBox1.Text)
TextBox3.Text = tol

Select one of the following:

  • True
  • False

Explanation

Question 14 of 20

1

La propiedad Label funciona para escribir una función

Select one of the following:

  • True
  • False

Explanation

Question 15 of 20

1

GroupBox sirve para :

Select one of the following:

  • para agrupar

  • crear grupos

  • para unir

Explanation

Question 16 of 20

1

IF significa:

Select one or more of the following:

  • Tal vez

  • Si

  • Se realiza

Explanation

Question 17 of 20

1

Un ciclo podría ser:

Select one or more of the following:

  • Else

  • For

  • Else If

Explanation

Question 18 of 20

1

Un ciclo sirve para ir sumando hasta el infinito, no tiene limite de números.

Select one of the following:

  • True
  • False

Explanation

Question 19 of 20

1

¿Cuál para que sirve el código Form2.ListBox1.Items.Add(TextBox1.Text)?

Select one of the following:

  • Para sumar una lista.

  • Para ir llenando y que no se borre el anterior a este.

  • Para ordenar una lista.

Explanation

Question 20 of 20

1

Para que funcione mi formulario necesita empezar con:
Public Class Form1

End Class

Select one of the following:

  • True
  • False

Explanation