Essays /

1402 Final Exam Sg Essay

Essay preview

2014 Term II 1402 Final Exam Study Guide
Name___________________________________

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 1)

Which of the following displays a message box to the user?

1)

_______
A)

MessageBox.Output

B)

MessageBox.Display
C)

MessageBox.Show

D)

DisplayMessageBox

2)

The ________ keyword is required to use relational operators in a Case statement.

2)

_______
A)

To

B)

Is

C)

If

D)

else

3)

What value is assigned to the String variable strSecond when the following code is executes?

Dim strFirst As String
Dim strSecond As String
strFirst = "1 2 Button My Shoe"
strSecond = strFirstName.ToUpper()

3)

_______
A)

"1 2 BUTTON MY SHOE"

B)

"1 2 bUTTON mY sHOE"
C)

" BUTTON MY SHOE"

D)

"12BUTTONMYSHOE"

4)

Visual Basic uses ________ values to represent characters such as A, B, and C in memory.

4)

_______
A)

ISO code

B)

BCD code

C)

ASCII code

D)

Unicode

5)

If a form contains two radio buttons (rad1 & rad2) and two check boxes (chk1 & chk2) and all four of these controls reside in the same group box, which of the following expressions can never be true?

5)

_______
A)

rad1.Checked=True and chk2.Checked=True
B)

rad1.Checked=True and rad2.Checked=True
C)

chk1.Checked=True and chk2.Checked=True
D)

rad2.Checked=True and chk1.Checked=True

6)

Which statement tests the value of an expression once and then uses that value to determine the result?

6)

_______
A)

If ... then ... Else

B)

Select Case ... Case Else
C)

If ... Then ... ElseIf

D)

If ... Now Then ... Never

7)

The expression Single.TryParse("12.5", sngNbr) performs the following:

7)

_______
A)

Returns False
B)

Returns True and places the value 12.5 in the variable sngNbr C)

Returns True
D)

Places the value 12.5 in the variable sngNbr

8)

The expression IsNumeric(13.75) returns the value ________.

8)

_______
A)

1375

B)

14

C)

13.75

D)

True

9)

Because only one radio button in a group can be selected at any given time, they are said to be ________.

9)

_______
A)

mutually exclusive

B)

selectively unique
C)

dependent

D)

interdependent

10)

What value will be assigned to strGrade when intScore equals 90?

If intScore > 60 Then
strGrade = "Passed"
End If
If intScore > 70 Then
strGrade = "Your mother still loves you"
End If
If intScore > 80 Then
strGrade = "Your parents would be Proud"
End If
If intScore > 90 Then
strGrade = "Your family is proud of you"
End If

10)

______
A)

Your parents would be Proud

B)

Your mother still loves you
C)

Your family is proud of you

D)

Passed

11)

The expression Integer.TryParse("12.5", intNbr) performs the following:

11)

______
A)

Places the value 12.5 in the variable intNbr
B)

Returns True and places the value 12.5 in the variable intNbr C)

Returns False
D)

Returns True

12)

To convert a copy of a String to all uppercase letters, use the ________ method of the String object.

12)

______
A)

ConvertToUpper

B)

ToString
C)

ToUpper

D)

ToUpperCase

13)

An If statement that appears inside another If statement is referred to as ________.

13)

______
A)

multi-level
B)

It's not possible for an If to appear inside another If.
C)

nested
D)

embedded

14)

Which statement assigns the string strAddress to label lblAddres...

Read more

Keywords

-1 0 000 1 10 100 11 12 12.5 12buttonmyshoe 13 13.75 1375 14 1402 15 16 17 18 19 2 20 2014 21 22 23 24 25 26 27 28 29 3 30 31 32 33 34 35 36 37 38 39 4 40 41 42 43 44 45 46 47 48 49 5 50 50000 51 52 53 54 55 56 57 58 59 6 60 61 62 63 64 65 66 67 68 7 70 8 80 9 90 accept access ad add agre allow alphabet alreadi altern alway amount anoth answer anywher appear applic appropri argument around ascii asdsakfljfdgasldfjdl ash assign automat autopopdelay b bar basic bcd begin best boolean box break built built-in button byaddress bydefault byref byvalu c call caller cannot caption case caus chang charact check chk1 chk1.checked chk2 chk2.checked choic choos claus code combin combo combobox command complet condit constant contain content context continu control controlchars.crlf controlcharscrlf convert converttoupp copi correct correspond count counter creat csng cstr current d data datatyp debug declar decrement default defaultbutton depend design determin differ digit dim disagr display displaymessagebox doubl drop drop-down either elaps els elseif embed end enter entri equal eras evalu event everi exam except exclus execut express f fals famili final finaldelay find finish first follow form found four friend function gather get given good great greater group guid head highlight icon ii includ inclus increment index infinit initi initialdelay input inputbox insid instead intcount integ integer.tryparse interdepend intindex intinn intnbr intnum intout intscor inttot inttotal.tostring intx ipmt isnumb isnumer iso item items.add items.append items.clear items.count items.delete items.erase items.insert items.new items.remove iter jim job john keyword label last lbladdress lbladdress.text lblmessag lblmessage.text lblsum.text least left length less letter level line list listbox listbox.add loan local locat logic long loop love lpmt lstoutput.items.add make mani mark may memori messag messagebox messagebox.display messagebox.message messagebox.output messagebox.send messagebox.show method millisecond mode mother mous multi multi-level multipl must mutual n name nest never new next number numer object one oper order orels origin paramet parent pass payment perform period place pmt point popup posit possibl ppmt pretest privat procedur program programm properti protect proud provid public purpos put qualifi question quotat rad1 rad1.checked rad2 rad2.checked radio rand.next random receiv refer regard relat remain remov reorder repeat repres requir reshowdelay resid respond result retain return right room run runtim said save scroll scrollbar scrollflag segment select selecteditem self set sever sg shoe side simpl singl single.tryparse small sngnbr sngsale sort space special specifi standard start statement static step still store straddress straddress.trim straddress.trimend strfirst strfirstname.toupper strfullstr strfullstring.substring strgrade string string.empty strlastnam strname1 strname2 strsecond strsnip strtarget strtarget.indexof struserinput studi style sub sum suppos take temporari term termin test text textbox throughout time tip titl ton tool tooltip tostr toupper touppercas trail transfer trigger trimstart true true/false two txtbox txtbox.text txtinput.text txtlastnam txtlastname.text txtlastname.text.toupper type unicod uniqu unless upper uppercas use user valid valu value/address variabl variablenam verifi visual wait want wash washington way without would write xor year