Frage 1
Frage
What is value of "z" assigned when this executed completely ?
Frage 2
Frage
Choose all appropriate Variable names
Frage 3
Frage
Are you ready for your test?
Frage 4
Frage
Choose all inappropriate Variable Names
Antworten
-
integer
-
//( ◕‿‿◕ )\
-
EndSub
-
Then
-
Name
-
Total
Frage 5
Frage 6
Frage
Which event able to load the form automatically when the program executed?
Antworten
-
Form.load
-
MyBase.load
-
load張form唔該
-
Pleaseload.form
Frage 7
Frage
Which VB code contain identical meaning with following equation
Frage 8
Frage
What value is stored in Y when the code executed?
Frage 9
Frage
We can Declare a Character type Variable, Named as Thisisquestion, by Following Code
Frage 10
Frage
Select all the data type, with valid variable type name, acceptable for VB
Antworten
-
int
-
integer
-
married
-
float
-
double
-
bool
-
boolean
-
String
-
字串
-
single
Frage 11
Frage
What is output of following code?
Frage 12
Frage
select all suitable syntax of comment in VB
Antworten
-
'( ˘•ω•˘ )◞⁽˙³˙⁾
-
'この僕を、ここまで追い詰めるとはね。まあ、いいさ。
-
//呢個係答案
-
"This is not a comment syntax
-
This is a comment
-
/*揀呢個*/
-
'This is a comment syntax'
Frage 13
Frage
Select all inappropriate syntax for VB
Frage 14
Frage
What is output of following code?
Frage 15
Frage
Select all event handler for VB
Antworten
-
load
-
click
-
textchanged
-
hit
-
同我揪左佢
Frage 16
Frage
Maxlength is one of property of textbox limitation of input string length
Frage 17
Frage
All inputed number from textbox is integer
Frage 18
Frage
Which code can add new string to listBox , Named ListBox.
Frage 19
Frage
Which value is assigned in Variable x when program executive before line 9
Frage 20
Frage
What is value stored in x ?
Antworten
-
54
-
36
-
15
-
30
-
compile error
Frage 21
Frage
What is correct syntax structure of Function?
Antworten
-
Function Name (Byxxx Variable As DataType, .... ) As Data Type
-
Datatype Name(Parameters) As Data Type
-
Datatype Name(Parameters)
-
Function Name (Byxxx Variable As DataType, .... )
Frage 22
Frage
Select all appropriate syntax of function
Antworten
-
Function CalTotal( price, quantity) As Double
-
Function ChrckGrade(ByVal Mark As Double, ByRef SubjectCode As Integer) As Character
-
int GetPrice( Sting Product)
-
int GetPrice( Sting Product) As Double
-
Function GetName(ByVal ID As Integer) As String
-
Function A(ByVal B As single,ByRef C As long) As String
-
Sub GotoSchool (ByBus Yes As String, ByMTR No As Integer)
Frage 23
Frage
What is correct syntax of Sub-Procedures?
Frage 24
Frage
Select all inappropriate syntax of Sub-Procedures
Antworten
-
Sub Total()
-
Function sub()
-
sub Total(ByVal Quantity As Double, ByVal Price As Double) As String
-
sub Total(ByVal Quantity As Double, ByBus Price As Double)
-
sub CheckValid() Is Boolean
-
Sub(Total, byval x As String)
-
Sub Total(ByRef Valid As Boolean, ByVal Name As String)
Frage 25
Frage
Dim [blank_start]x As Integer[blank_end]
if x > 6 [blank_start]then[blank_end]
x = int(5.17 +7.14)
else [blank_start]if[blank_end] x < 5
x = 9
[blank_start]End if[blank_end]
Antworten
-
x As Integer
-
then
-
if
-
End if
Frage 26
Frage
Name All the Controls
Antworten
-
Label
-
InputBox
-
TextBox
-
CheckBox
-
Buttons
-
ListBox
-
Form
-
MyBase
-
Me
Frage 27
Frage
Dim Price,Quantity As Double
Price = 3.5
Quantity = 4
Dim total As Double = [blank_start]CalTotal(Price, Quantity)[blank_end] 'Calculate the total by Price * Quantity
ListBox.items.[blank_start]add[blank_end](total)
[blank_start]Function[blank_end] CalTotal([blank_start]ByVal[blank_end] Price [blank_start]As Double[blank_end], [blank_start]ByVal[blank_end] Quantity [blank_start]As Double[blank_end]) [blank_start]As Double[blank_end]
Return [blank_start]Price * Quantity[blank_end]
[blank_start]End Function[blank_end]
Frage 28
Frage
Two numeric strings ("11","22",etc...) can calculate directly without any conversion function(Cint(),CDbl(),...etc) applied .
Frage 29
Frage
What is output of this code?
Frage 30
Frage
Which is global (class-level) Variable?
Antworten
-
local
-
classlevel
-
both
-
none of them
Frage 31
Frage
Select all local variable(s).
Antworten
-
classlevel
-
pass
-
local
-
none of them
-
all of them
Frage 32
Frage
What is the output of following code?
Frage 33
Frage
What Value Stored,For Variable "result", when the program executed line 7?
Antworten
-
"-1NoNo"
-
"437"
-
"-148"
-
Compile error
Frage 34
Frage
Complete the following Blanks with the expected result:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim x As [blank_start]Integer[blank_end] = 35
Dim y As Integer = 53
[blank_start]SetLabel(x, y)[blank_end]
Dim [blank_start]total[blank_end] As Integer = [blank_start]Sum(x, y)[blank_end]
TextBox1.Text = total
End Sub
Function Sum[blank_start](ByVal x As Integer, ByVal y As Integer)[blank_end]
Return x + y
[blank_start]End Function[blank_end]
Sub SetLabel(ByVal x As Integer, ByVal y As Integer)
Label2.Text = [blank_start]x & " + " & y & " = "[blank_end]
[blank_start]End Sub[blank_end]
End Class
Antworten
-
Integer
-
SetLabel(x, y)
-
Label.text(x,y)
-
ClassSub(SetLabel,x,y)
-
String
-
Long
-
total
-
Sum
-
End Function
-
End
-
End Sub
-
End Functions
-
End Subs
-
x & " + " & y & " = "
-
x + y =
-
" x + y ="
-
(ByVal x As Integer, ByVal y As Integer)
-
(ByVal Integer As x, ByVal Integer As y)
-
(int x, int y) As Integer
-
Sum(x, y)
-
Call.function(sum,x,y,integer)
-
我要呢個function(加埋,傳x及y) 唔該
Frage 35
Frage
IndexOf() able to return length of string
Frage 36
Frage
length() return integer about the number of characters in the target string
Frage 37
Frage
trim() able to cut out all spaces, no matter the offset of that spaces in that string
Frage 38
Frage
We can use "-" operator to append two strings together
Frage 39
Frage
Return type of Function Math.sqrt() is Double
Frage 40
Frage
All conditional statement in if block is logical expression
Frage 41
Frage
What is the return boolean value of following logical expression:
Assume A = Ture, B = False
Not((A And B) Or ( B or B))
Frage 42
Frage
What is Boolean value of following logical expression:
Assume A is True
(Not A Or A) And Not (A or Not A)
Frage 43
Frage
What is output of following code?
Frage 44
Frage
Select all typical programming errors
Antworten
-
logical error
-
syntax error
-
runtime error
-
Benson is the error
-
Spelling error
-
都Q知自己錯乜
-
Nothing error
-
compile error
Frage 45
Frage
syntax error regards there are some inappropriate flow of execution of code
Frage 46
Frage
logical error not affect the execution of program when compiling the code
Frage 47
Frage
the programme suddenly stopped when runtime error occurred.
Frage 48
Frage
In Flowchart diagram, rectangle is used to represent process of the program design
Frage 49
Frage
In Flowchart diagram, Oval is used to represent start or end of the program design
Frage 50
Frage
Name all diagram with the flowchart
Antworten
-
Start
-
circle
-
Start
-
End
-
Process
-
Nothing
-
Termial
-
Process
-
Decision
-
Input
-
Output
-
Decision
-
The diagram is so 唔識串
-
input
-
output
-
looping