Prepare well for your Exam

Descripción

Higher diploma Information Technology Test sobre Prepare well for your Exam, creado por itso Lucypay el 16/11/2017.
itso Lucypay
Test por itso Lucypay, actualizado hace más de 1 año
itso Lucypay
Creado por itso Lucypay hace alrededor de 7 años
383
0

Resumen del Recurso

Pregunta 1

Pregunta
"ThisisaVaraible" is a VAILD variable name for integer.
Respuesta
  • True
  • False

Pregunta 2

Pregunta
Select all valid Variable Name
Respuesta
  • SKTT1_Faker
  • Click
  • Mybase.Load
  • int
  • Integer
  • _Orz_
  • わたしがいれば十分ですよ
  • ThisisaComment
  • !Yes
  • _Cat_

Pregunta 3

Pregunta
Select all appropriate statement
Respuesta
  • sub is not a reserved word for sub-procedure
  • Integer is a kind of data type for VB
  • Load is an event handler
  • Variable name cannot contain number
  • "Benson" is not a valid variable name

Pregunta 4

Pregunta
What is output of following code?

Pregunta 5

Pregunta
What is output of following code?

Pregunta 6

Pregunta
Select all Valid Function Parameter Passing Method
Respuesta
  • byVal
  • byRef
  • 參數傳落去
  • 共用記憶
  • byBus
  • byTaxi
  • Value
  • Reference

Pregunta 7

Pregunta
Write a Complete Command for a String Variable Declaration, name is Benson, that assigned a value "A0". [blank_start]Dim[blank_end] Benson [blank_start]As[blank_end] [blank_start]String[blank_end] [blank_start]=[blank_end] [blank_start]"A0"[blank_end]
Respuesta
  • Dim
  • Sum
  • DimSum
  • Str
  • As
  • Is
  • Become
  • String
  • Integer
  • Char
  • Double
  • Single
  • "A0"
  • A0
  • 'A0'
  • "Who XXXX Care Benson is A0"
  • =
  • ==
  • ->
  • (∩^o^)⊃━☆゚.*・。

Pregunta 8

Pregunta
An Event Handler is a kind of Sub-procedure.
Respuesta
  • True
  • False

Pregunta 9

Pregunta
What is out of following Code?

Pregunta 10

Pregunta
Select all inappropriate error types
Respuesta
  • syntax error
  • runtime error
  • logical error
  • Benson is really a error
  • 知道自己錯乜駛你教咩
  • Spelling error
  • My life is a error

Pregunta 11

Pregunta
What is output of following code?

Pregunta 12

Pregunta
Select all suitable code for VB
Respuesta
  • C++;
  • int x = 7;
  • Dim x As Char = '7'
  • c += 6
  • c =5;
  • Dim ArrayName(Size) As Integer
  • /**This is a Comment**/

Pregunta 13

Pregunta
Select all appropriate event handler(s) for Button
Respuesta
  • load
  • click
  • 比利卡 比利那那 撲撲利那 比比路多
  • パメルクラルク ラリロリポップン
  • clicklaDon'twastmytime

Pregunta 14

Pregunta
Select all suitable control(s) for VB
Respuesta
  • Text Box
  • List Box
  • Group Box
  • Pizza Box
  • Input Box
  • Message Box

Pregunta 15

Pregunta
What is output of following code? Dim x,y,z As Integer x = 15 y = x + 1 z = 10 + Math.Sqrt(y) z += Math.Round(z ^ 2) TextBox2.Text = z
Respuesta
  • 14
  • 210
  • 56280
  • compile error

Pregunta 16

Pregunta
Complete the code that output will identical with the calculation of equation Dim a , b, c As Double c = [blank_start]Math.sqrt(b^(5-2)+(a^6/b))[blank_end] Textbox.text = c
Respuesta
  • Math.sqrt(b^(5-2)+(a^6/b))
  • Math.round(b^(5-2)+(a^6/b))
  • (b^(5-2)+(a^6/b))
  • Math.sqrt(b*(5-2)+(a^6/b))
  • 2*Math.sqrt(b^(5-2)+(a^6/b))

Pregunta 17

Pregunta
A Variable able to store more than one value.
Respuesta
  • True
  • False

Pregunta 18

Pregunta
A original value will be replaced when a new value assigned to the variable.
Respuesta
  • True
  • False

Pregunta 19

Pregunta
What is output of following code?

Pregunta 20

Pregunta
Complete a correct syntax for the following code Dim a,b,c As Integer if a < b [blank_start]Then[blank_end] c = 16 else [blank_start]if a > b Then[blank_end] c = 17 [blank_start]else[blank_end] c =18 [blank_start]End if[blank_end]
Respuesta
  • End if
  • Endif
  • else
  • otherwise
  • if a > b Then
  • a > b Then
  • a > b
  • Then
  • therefore

Pregunta 21

Pregunta
What is output of following code?

Pregunta 22

Pregunta
What is output of following code?
Respuesta
  • 25000
  • 50000
  • 500
  • compile error

Pregunta 23

Pregunta
Rewrite the following code using for looping. Private Sub btnDisplay_Click(...) Handles _btnDisplay.Click Dim s As String = "stressed" [blank_start]DisplayHeader(s)[blank_end] [blank_start]DisplayLetter(s)[blank_end] End Sub Sub DisplayHeader(ByVal s As [blank_start]String[blank_end]) lstOutput.Items.Add("If you feel " & s & ", eat: ") End Sub [blank_start]Sub[blank_end] DisplayLetter(ByVal s As String) For count [blank_start]As Integer[blank_end] = 1 To [blank_start]s.Length[blank_end] Step 1 lstOutput.Items.Add([blank_start]s.Substring(s.Length - count, 1)[blank_end]) [blank_start]Next[blank_end] [blank_start]End Sub[blank_end]
Respuesta
  • DisplayHeader(s)
  • DisplayHeader(s,s.length)
  • DisplayLetter(s)
  • DisplayLetter(s,s.length)
  • Sub
  • Function
  • End Sub
  • EndSub
  • End Function
  • EndFunction
  • As Integer
  • As String
  • s.Length
  • 7
  • s.Substring(s.Length - count, 1)
  • s.Substring(s.Length - 1, count)
  • s.Substring(count, s.Length -1)
  • String
  • Char
  • Double
  • Next
  • Loop
  • End For
  • Endfor

Pregunta 24

Pregunta
The Program is still executable when logical error occurred
Respuesta
  • True
  • False

Pregunta 25

Pregunta
When "Your life is a Bug" error is occurred, the program is still executable
Respuesta
  • True
  • False

Pregunta 26

Pregunta
Complete the code with following result Private Sub Button1_Click(sender As Object, e As EventArgs) Handles [blank_start]Button1.Click[blank_end] Dim input As String = TextBox2.Text Dim countWord As Integer = 1 If input.Length > 0 Then 'A checking for empty input Do While [blank_start]input.Length[blank_end] > 0 'A checking the remained words If [blank_start]input.IndexOf(" ") <> -1[blank_end] Then 'Check occurrance of Space Bar when counting Word input = [blank_start]input.Substring(input.IndexOf(" ") + 1)[blank_end] 'if Space Bar found, the word before the space will be "cut" [blank_start]countWord += 1[blank_end] 'increase the word count Else [blank_start]input = ""[blank_end] 'when the no space remain, then clear the string End If Loop Else [blank_start]countWord = 0[blank_end] 'set the word count as zero, when no input End If lstOutput.Items.Add(countWord) End Sub
Respuesta
  • Button1.Click
  • Button1.Load
  • Button1.二字拑羊馬
  • input.Length
  • input.Howlongisthestring
  • input.IndexOf(" ") <> -1
  • input.IndexOf(" ") Is found
  • input.Substring(input.IndexOf(" ") + 1)
  • nput.Substring(input.IndexOf(" "))
  • countWord += 1
  • countWord -= 1
  • countWord++;
  • countWord = 0
  • countWord.empty
  • input = ""
  • input.清空佢()

Pregunta 27

Pregunta
What is the correct syntax of "For loop"?
Respuesta
  • For I As Integer = 0 To 30 Step 5 ... Next
  • For I As Integer = 0 To 30 Step 5 ... Loop
  • For(int i = 0; i <= 30; i = i+5){ .... }
  • For Loop From I As Integer = 0 To 30 .... Next

Pregunta 28

Pregunta
What is the output of following code?

Pregunta 29

Pregunta
Consider the following code, What value is stored in the Variable x ? Dim Array() As String = {"Nagato", "Shimakaze", "FubuKi", "Amatsuk"} Dim x As Integer = Array.count
Respuesta
  • 4
  • 28
  • 3
  • compile error

Pregunta 30

Pregunta
Consider the following code, What value is stored in the Variable x ? Dim Array() As String = {"Nagato", "Shimakaze", "FubuKi", "Amatsuk"} Dim x As Integer For i As Integer = 1 To Array.Count - 1 x += Array(i).Length Next
Respuesta
  • 3
  • 22
  • 4
  • 28

Pregunta 31

Pregunta
Dim Array() As String = {"Nagato", "Shimakaze", "FubuKi", "Amatsuk"} Dim x As Integer For i As Integer = 0 To Array.Count x += Array(i).Length Next
Respuesta
  • 22
  • 28
  • 4
  • compile error

Pregunta 32

Pregunta
Declare a Array, Name As FourFoolWarships for storing four strings : Haruna, Kongo, Hiei, Kirishima. [blank_start]Dim[blank_end] [blank_start]FourFoolWarships()[blank_end] [blank_start]As[blank_end] [blank_start]String[blank_end] [blank_start]=[blank_end] [blank_start]{"Haruna","Kongo","Hiei","Kirishima"}[blank_end]
Respuesta
  • Dim
  • Str
  • FourFoolWarships()
  • FourFoolWarships
  • As
  • Is
  • String
  • String()
  • 字串序列
  • 刀劍神域.序列戰爭
  • FourFoolWarships(4)
  • FourFoolWarships(3)
  • =
  • ->
  • ==
  • 賦予
  • {"Haruna","Kongo","Hiei","Kirishima"}
  • ["Haruna","Kongo","Hiei","Kirishima"]
  • "Haruna","Kongo","Hiei","Kirishima"
  • {'Haruna','Kongo','Hiei','Kirishima'}
  • Haruna,Kongo,Hiei,Kirishima
  • 榛名,金剛,比叡,霧島
  • 定義
  • 金剛四傻(4)

Pregunta 33

Pregunta
Consider the following code, The Value of x is True Dim A As Boolean = True Dim B As Boolean = False Dim x As Boolean = (A Or Not B) And A = -1
Respuesta
  • True
  • False

Pregunta 34

Pregunta
Consider the following code, The Value of x is False. Dim A As Integer = 15 Dim B As Integer = 13 Dim x As Boolean = (Not (A < B) And A > 0) And (A = B + 2)
Respuesta
  • True
  • False

Pregunta 35

Pregunta
Select All Appropriate Syntax for Declaration of Function Header
Respuesta
  • Function Name(ByVal Variable As Integer) As String
  • string Name(int variable)
  • Dim Name(ByVal Variable As Integer) As Funciton
  • Function Name(ByVal Variable As Integer) As Character
  • Function Name(int variable) As String
  • Function Name(ByRef Variable As Integer) As String
  • Function Name(ByBus Variable As Integer) As String
  • Function Name(ByVal Variable As Married) As Single
  • None of above

Pregunta 36

Pregunta
Consider the following code, what value is stored in variable Answer Dim Array() As String = {"Kamikaze","Asakaze","Harukaze","matsukaze","Hatakaze"} Answer = Array(3).Toupper()
Respuesta
  • Harukaze
  • MATSUKAZE
  • HARUKAZE
  • none of above

Pregunta 37

Pregunta
Name all the controls in this UI
Respuesta
  • MyBase
  • Form
  • From
  • 表格呀!
  • Label
  • StringBox
  • TextBox
  • LabelBox
  • TextLabel
  • List
  • ListLabel
  • GroupBox
  • ListBox
  • Button
  • LabelButton
  • Warspite
  • Warspite.jpg
  • PictureBox
  • PictureLabel
  • Your Wifu
  • MessageBox

Pregunta 38

Pregunta
The return value of string.Trim() is [blank_start]String[blank_end]
Respuesta
  • String
  • Character
  • Double
  • Integer
  • Nothing
  • a value

Pregunta 39

Pregunta
What is output of following code?

Pregunta 40

Pregunta
Which of following code is identical the code shown below h /= h / 3
Respuesta
  • 一睇就知錯啦仲問,唔講以為係表情符號! (Don't care this answer, if your don't understand this sentence)
  • h = h / (h/3)
  • h = h / 3
  • h = h / h / h

Pregunta 41

Pregunta 42

Pregunta
Complete the following code in order the have the shown result. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim Array() As Integer = {5, 6, 4, 1} TextBox2.Text = [blank_start]CStr(Array(3))[blank_end] End Sub
Respuesta
  • CStr(Array(3))
  • Array(4)
  • CStr(Array(4))
  • CStr(Array().3)
  • CInt(Array(3))
  • CArray(Array(3))
  • CStr(Array(1))

Pregunta 43

Pregunta
Write a code for completing following Combinations Calculation (nCr) Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Button1.Text = CStr(CombinationCalculation(CInt(N.Text), CInt(R.Text))) End Sub Function CombinationCalculation(ByVal n As Integer, ByVal r As Integer) As Double Return [blank_start]Factorial(n)[blank_end] / ([blank_start]Factorial(r)[blank_end] * [blank_start]Factorial(n - r)[blank_end]) End Function [blank_start]Function[blank_end] Factorial(ByVal num As Integer) As [blank_start]Double[blank_end] Dim Ans As Double = 1 For count As Integer = [blank_start]num To 1[blank_end] Step -1 Ans [blank_start]*=[blank_end] count Next [blank_start]Return Ans[blank_end] [blank_start]End Function[blank_end]
Respuesta
  • Factorial(n)
  • Factorial(r)
  • Factorial(n - r)
  • Double
  • Long
  • Integer
  • *=
  • +=
  • *
  • +
  • =
  • Return Ans
  • Return count
  • Function
  • sub
  • End Function
  • End Sub
  • num To 1
  • 1 To num

Pregunta 44

Pregunta
The following code will cause exception when executing. Dim Array() As Integer = {2,4,5,7} Dim x = Array(5) 'get the number 5 in the Array
Respuesta
  • True
  • False

Pregunta 45

Pregunta
What exception caused when following code executing. Dim Arrary(5) As Integer = {1,2,3,4,5,6} Dim x As Integer = Array(Array.count)
Respuesta
  • IndexOutofRangeException
  • 都唔知你問乜
  • Array Exception
  • This code is correct

Pregunta 46

Pregunta
We can check the largest index of the array by using "Array.count - 1" command
Respuesta
  • True
  • False

Pregunta 47

Pregunta
Return Value of Array.count of an Array(10) is 9
Respuesta
  • True
  • False

Pregunta 48

Pregunta
All output of Textbox is [blank_start]String[blank_end]
Respuesta
  • String
  • Character
  • Number
  • Answer
  • 乜都好啦 話之佢

Pregunta 49

Pregunta
Which is class-level Variable?
Respuesta
  • ThisScropeVariable
  • int
  • classlevel
  • scopeVariable
  • None of above

Pregunta 50

Pregunta
Which of following Commands have looping feature in VB?
Respuesta
  • For .... Next
  • Do While...Loop
  • Do Until....Loop
  • Do .... Loop
  • 初戀呀....我要初戀呀
  • First Love....Love
  • Money ... GirlFriend .... Next
  • Do While Next
Mostrar resumen completo Ocultar resumen completo

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
CCNA Answers – CCNA Exam
Abdul Demir
SQL Quiz
R M
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