Prepare well for your Test!

Description

Higher diploma Information Technology Quiz on Prepare well for your Test!, created by itso Lucypay on 09/10/2017.
itso Lucypay
Quiz by itso Lucypay, updated more than 1 year ago
itso Lucypay
Created by itso Lucypay over 6 years ago
938
1

Resource summary

Question 1

Question
What is value of "z" assigned when this executed completely ?
Answer
  • 16
  • 32
  • 48
  • " "

Question 2

Question
Choose all appropriate Variable names
Answer
  • Yamato
  • Kancolle
  • ifend
  • Then
  • Num_A
  • 巴麻美 ξ( ✿>◡❛)▄︻▇▇〓 ティロ・フィナーレ!
  • 我係一個變數
  • x
  • Variables

Question 3

Question
Are you ready for your test?
Answer
  • True
  • False

Question 4

Question
Choose all inappropriate Variable Names
Answer
  • integer
  • //( ◕‿‿◕ )\
  • EndSub
  • Then
  • Name
  • Total

Question 5

Question
What is (A) ?
Answer
  • As
  • Is
  • Be
  • " "

Question 6

Question
Which event able to load the form automatically when the program executed?
Answer
  • Form.load
  • MyBase.load
  • load張form唔該
  • Pleaseload.form

Question 7

Question
Which VB code contain identical meaning with following equation

Question 8

Question
What value is stored in Y when the code executed?
Answer
  • 6
  • 12
  • 46656
  • compile error

Question 9

Question
We can Declare a Character type Variable, Named as Thisisquestion, by Following Code
Answer
  • True
  • False

Question 10

Question
Select all the data type, with valid variable type name, acceptable for VB
Answer
  • int
  • integer
  • married
  • float
  • double
  • bool
  • boolean
  • String
  • 字串
  • single

Question 11

Question
What is output of following code?

Question 12

Question
select all suitable syntax of comment in VB
Answer
  • '( ˘•ω•˘ )◞⁽˙³˙⁾
  • 'この僕を、ここまで追い詰めるとはね。まあ、いいさ。
  • //呢個係答案
  • "This is not a comment syntax
  • This is a comment
  • /*揀呢個*/
  • 'This is a comment syntax'

Question 13

Question
Select all inappropriate syntax for VB

Question 14

Question
What is output of following code?

Question 15

Question
Select all event handler for VB
Answer
  • load
  • click
  • textchanged
  • hit
  • 同我揪左佢

Question 16

Question
Maxlength is one of property of textbox limitation of input string length
Answer
  • True
  • False

Question 17

Question
All inputed number from textbox is integer
Answer
  • True
  • False

Question 18

Question
Which code can add new string to listBox , Named ListBox.
Answer
  • ListBox.add(String)
  • ListBox.items.add(String)
  • ListBox.item.add(String)
  • 清單。物件。導入(現已發售)

Question 19

Question
Which value is assigned in Variable x when program executive before line 9
Answer
  • 36
  • 54
  • 15
  • 30

Question 20

Question
What is value stored in x ?
Answer
  • 54
  • 36
  • 15
  • 30
  • compile error

Question 21

Question
What is correct syntax structure of Function?
Answer
  • Function Name (Byxxx Variable As DataType, .... ) As Data Type
  • Datatype Name(Parameters) As Data Type
  • Datatype Name(Parameters)
  • Function Name (Byxxx Variable As DataType, .... )

Question 22

Question
Select all appropriate syntax of function
Answer
  • 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)

Question 23

Question
What is correct syntax of Sub-Procedures?
Answer
  • Sub Name(Parameter)
  • Sub Name(Parameter) As DataType
  • Sub Name(Parameter) Is DataType
  • DateType Name(Parameter)

Question 24

Question
Select all inappropriate syntax of Sub-Procedures
Answer
  • 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)

Question 25

Question
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]
Answer
  • x As Integer
  • then
  • if
  • End if

Question 26

Question
Name All the Controls
Answer
  • Label
  • InputBox
  • TextBox
  • CheckBox
  • Buttons
  • ListBox
  • Form
  • MyBase
  • Me

Question 27

Question
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]
Answer
  • CalTotal(Price, Quantity)
  • add
  • Function
  • As Double
  • ByVal
  • As Double
  • ByVal
  • As Double
  • Price * Quantity
  • End Function

Question 28

Question
Two numeric strings ("11","22",etc...) can calculate directly without any conversion function(Cint(),CDbl(),...etc) applied .
Answer
  • True
  • False

Question 29

Question
What is output of this code?

Question 30

Question
Which is global (class-level) Variable?
Answer
  • local
  • classlevel
  • both
  • none of them

Question 31

Question
Select all local variable(s).
Answer
  • classlevel
  • pass
  • local
  • none of them
  • all of them

Question 32

Question
What is the output of following code?
Answer

Question 33

Question
What Value Stored,For Variable "result", when the program executed line 7?
Answer
  • "-1NoNo"
  • "437"
  • "-148"
  • Compile error

Question 34

Question
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
Answer
  • 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) 唔該

Question 35

Question
IndexOf() able to return length of string
Answer
  • True
  • False

Question 36

Question
length() return integer about the number of characters in the target string
Answer
  • True
  • False

Question 37

Question
trim() able to cut out all spaces, no matter the offset of that spaces in that string
Answer
  • True
  • False

Question 38

Question
We can use "-" operator to append two strings together
Answer
  • True
  • False

Question 39

Question
Return type of Function Math.sqrt() is Double
Answer
  • True
  • False

Question 40

Question
All conditional statement in if block is logical expression
Answer
  • True
  • False

Question 41

Question
What is the return boolean value of following logical expression: Assume A = Ture, B = False Not((A And B) Or ( B or B))
Answer
  • True
  • False

Question 42

Question
What is Boolean value of following logical expression: Assume A is True (Not A Or A) And Not (A or Not A)
Answer
  • True
  • False

Question 43

Question
What is output of following code?

Question 44

Question
Select all typical programming errors
Answer
  • logical error
  • syntax error
  • runtime error
  • Benson is the error
  • Spelling error
  • 都Q知自己錯乜
  • Nothing error
  • compile error

Question 45

Question
syntax error regards there are some inappropriate flow of execution of code
Answer
  • True
  • False

Question 46

Question
logical error not affect the execution of program when compiling the code
Answer
  • True
  • False

Question 47

Question
the programme suddenly stopped when runtime error occurred.
Answer
  • True
  • False

Question 48

Question
In Flowchart diagram, rectangle is used to represent process of the program design
Answer
  • True
  • False

Question 49

Question
In Flowchart diagram, Oval is used to represent start or end of the program design
Answer
  • True
  • False

Question 50

Question
Name all diagram with the flowchart
Answer
  • Start
  • circle
  • Start
  • End
  • Process
  • Nothing
  • Termial
  • Process
  • Decision
  • Input
  • Output
  • Decision
  • The diagram is so 唔識串
  • input
  • output
  • looping
Show full summary Hide full summary

Similar

CCNA Security 210-260 IINS - Exam 3
Mike M
Application of technology in learning
Jeff Wall
Innovative Uses of Technology
John Marttila
Ch1 - The nature of IT Projects
mauricio5509
The Internet
Gee_0599
SQL Quiz
R M
CCNA Answers – CCNA Exam
Abdul Demir
Professional, Legal, and Ethical Issues in Information Security
mfundo.falteni
System Analysis
R A
Flash Cards Networks
JJ Pro Wrestler
EDUC260- Multimodal Literacies for a Digital Age
angelwoo2002