1.
Berikut ini adalah urutan struktur dari program VB. Net, kecuali ...
Correct Answer
D. Option Explicit
Explanation
The given answer is "Option Explicit". In VB.Net, Option Explicit is used to require explicit declaration of all variables before they can be used. It helps in avoiding typographical errors and enhances code readability. The other options mentioned in the question are all essential components of a VB.Net program. Option statements are used to set various compiler options, Imports statements are used to import namespaces, and Main procedure is the entry point of the program.
2.
Pada saat kompilasi tidak terjadi kesalahan, tetapi pada runtime akan menimbulkan runtime error System.OverflowException), karena ...
Correct Answer
A. Variable a bertipe data short
Explanation
The correct answer is "Variable a bertipe data short". This is because when the variable a is declared as a short data type, it can only store integer values within a limited range (-32,768 to 32,767). If a value outside this range is assigned to variable a, it will cause a runtime error called System.OverflowException.
3.
Berikut adalah IDE Main Window pada VB.Net, kecuali ...
Correct Answer
C. Windows Form Application
Explanation
The given options are different components of the IDE Main Window in VB.Net. The "Windows Form Application" is not a part of the IDE Main Window. It is a project template that can be used to create a new project in VB.Net. The other options, such as Toolbars, Document Window, and Form Designer, are all components that are typically found in the IDE Main Window.
4.
a dan b secara berturut-turut adalah ...
Correct Answer
D. Method list, Class list
Explanation
The correct answer is "Method list, Class list". This is because in object-oriented programming, methods are defined within a class. Therefore, the method list comes before the class list in the order of declaration.
5.
Berikut adalah Correct any Errors dan Rerun kecuali, ...
Correct Answer
D. Debug Menu
Explanation
The given answer "Debug Menu" is correct because it is the only option that is related to fixing errors and rerunning the program. The other options, "Compile Errors," "Runtime Errors," and "Logic Errors," refer to different types of errors that can occur in a program. However, the "Debug Menu" is a tool or feature that allows developers to identify and fix errors in their code during the debugging process.
6.
Apakah fungsi dari Cint() ...
Correct Answer
A. Pembulatan nilai desimal 0.5 dan lebih ke integer yang lebih dekat
Explanation
The correct answer is "Pembulatan nilai desimal 0.5 dan lebih ke integer yang lebih dekat" which means rounding decimal values of 0.5 and above to the nearest integer. This function is used to round off decimal values to the nearest whole number.
7.
Apakah toolbox dari x ...
Correct Answer
A. CheckBox
Explanation
The correct answer is CheckBox. A CheckBox is a graphical user interface element that allows the user to select one or more options from a set of choices. It is commonly used to present a list of options where the user can select multiple items. In the context of the question, the toolbox of "x" likely refers to the available options or tools that can be used in a software or application development environment, and CheckBox is one of those options.
8.
Struktur keputusan di dalam VB.Net, kecuali ...
Correct Answer
C. Do...While
Explanation
The given answer, "Do...While," is the correct choice because it represents a loop structure in VB.Net. The "Do...While" loop will continue executing a block of code as long as a specified condition is true. This loop structure is commonly used when you want to repeat a set of instructions until a certain condition is met. The other options listed, "If...Then," "Select...Case," and "If...Then...Else," are all conditional statements rather than loop structures.
9.
Value range dari tipe data Single ...
Correct Answer
A. -3.4028235E+38 s/d -1.401298E-45
Explanation
The correct answer is "-3.4028235E+38 s/d -1.401298E-45". This range represents the value range of the Single data type, which is a floating-point data type in programming languages. The range starts from the smallest negative value (-3.4028235E+38) and goes up to the smallest positive value (-1.401298E-45) that can be represented by this data type.
10.
Struktue array di dalam VB.Net, kecuali ...
Correct Answer
D. If ... Then
Explanation
The structure array in VB.Net does not include the "If ... Then" statement. The "If ... Then" statement is used for conditional execution, where a certain block of code is executed only if a specified condition is true. It allows the program to make decisions based on the evaluation of a condition. However, it is not a part of the structure array in VB.Net, which is used to store multiple values of the same data type in a single variable.
11.
Hasil eksekusi di atas dapat diperbaiki menjadi ...
Correct Answer
A. System.Convert.ToInt16(a)
Explanation
The correct answer is System.Convert.ToInt16(a) because the code is trying to convert the variable 'a' to a 16-bit signed integer. The Convert.ToInt16() method is specifically designed for this purpose and will throw an OverflowException if the value of 'a' is outside the range of a 16-bit signed integer. The other options listed are not valid methods for converting a variable to a 16-bit signed integer.
12.
Program yang menggunakan basis teks pada lingkungan Command Prompt adalah ...
Correct Answer
B. Program Console
Explanation
Program Console adalah program yang menggunakan basis teks pada lingkungan Command Prompt. Dalam program ini, pengguna berinteraksi dengan program melalui baris perintah yang diberikan di Command Prompt. Program Console biasanya digunakan untuk menjalankan perintah dan skrip sederhana, serta melakukan tugas-tugas dasar melalui antarmuka teks.
13.
Option Explicit On
Import System
Public Module Lingkaran
Const PI As Single = 3.14
Sub Main()
Dim R As Single
Dim Luas As Double
Console.Write(“Masukkan Jari-jari : “)
R = Console.ReadLine()
Luas = PI * R^2
Console.WriteLine(“Luas : {0, 10:f2}”, Luas)’10 tempat 2 desimal
End Sub
End Module
Jika R = 14 maka Luas = ...
Correct Answer
A. 615,44
Explanation
The given code is written in Visual Basic and calculates the area of a circle. The value of the radius (R) is taken as input from the user. The formula used to calculate the area is PI * R^2, where PI is a constant with a value of 3.14.
In this case, the value of R is given as 14. Substituting this value into the formula, the calculation becomes 3.14 * 14^2 = 3.14 * 196 = 615.44. Therefore, the correct answer is 615.44.
14.
Hasil Output program di bawah ini, kecuali ...
Correct Answer
C. Arr(2) = 2
Explanation
The program outputs the values of the array "Arr". The values at index 0, 1, and 3 are 0, 1, and 9 respectively. Therefore, the value at index 2 is 2.
15.
Fungsi yang digunakan untuk mengembalikan index yang terbesar dari suatu dimensi pada array disebut ...
Correct Answer
A. Fungsi Ubound
Explanation
The correct answer is "Fungsi Ubound." Ubound is a function used to return the largest index of a specified dimension in an array. This function is commonly used in programming to determine the size or length of an array.