Click here to Skip to main content
16,007,443 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionVB.net Datagrid Pin
Simpiwe31-Aug-05 5:56
Simpiwe31-Aug-05 5:56 
Questionhow to shutdonw winXP Pin
marclenoir200531-Aug-05 4:49
marclenoir200531-Aug-05 4:49 
AnswerRe: how to shutdonw winXP Pin
°[Halo]°31-Aug-05 5:06
°[Halo]°31-Aug-05 5:06 
AnswerRe: how to shutdonw winXP Pin
Dave Kreskowiak31-Aug-05 5:44
mveDave Kreskowiak31-Aug-05 5:44 
Questiontwo scroll bars? Pin
monageasmear31-Aug-05 4:08
monageasmear31-Aug-05 4:08 
AnswerRe: two scroll bars? Pin
Taen_Karth1-Sep-05 11:47
Taen_Karth1-Sep-05 11:47 
Questiontwo scroll bars? Pin
monageasmear31-Aug-05 4:06
monageasmear31-Aug-05 4:06 
QuestionWho can answer the following? Pin
krugerkelly31-Aug-05 3:46
krugerkelly31-Aug-05 3:46 
Sleepy | :zzz: Assignment #3

Q1. Which of the following is a valid condition for an IF …THEN…ELSE statement?
a. Val(txtage.text > 65)
b. Val(lblprice.text) > 0 AND < 10
c. curSales > 500 AND < 800
d. curCost > 100 AND curCost <= 100
e. UCase(strstate) = “Alaska” and UCase(strstate) = “Hawaii”

Q2. Evaluate the following expression: 3 > 6 AND 7 < 4
a. true
b. false

Q3. Evaluate the following expression: 7 >= 3 + 4 OR 6 < 4 AND 2 < 5
a. true
b. false

Use the following information to answer questions Q4 to Q8
X = 5, Y = 3, Z = 2, A = True, B = False

Q4. Evaluate the following expression: X * Z > X * Y AND A
a. true
b. false

Q5. Evaluate the following expression: X * Y > Y ^ Z
a. true
b. false

Q6. Evaluate the following expression: X * Y > Y ^ Z AND A OR B
a. true
b. false

Q7. Evaluate the following expression: A OR B
a. true
b. false

Q8. If the testexpression used in the SELECT CASE clause is the numeric variable curSales, which two of the following CASE clause is valid?
a. CASE 2, 4, 6, 8
b. CASE “1” TO “3”
c. CASE IS < “6”
d. CASE IS >= 8
e. CASE 4.5 Through 8.5


Q9. Assume the form contains two grouping objects(i.e controls). Each group object contains three options buttons. How many option buttons can be on at any time?
a. one
b. two
c. three
d. four
e. six

Q10. Assume the form contains two grouping objects (i.e controls). Each group object contains two check boxes. How many check boxes can be on at any time?
a. one
b. two
c. three
d. four
e. six

Q11. You can use the ____________ statement to invoke a user defined sub procedure.
a. CALL
b. DoProcedure
c. GET
d. INVOKE
e. ProcedureCall

Q12. The MsgBox function displays a dialog box that contains ____________
a. a message
b. one or more command buttons
c. an optional icon
d. all of the above

Q13. Assume IntCount is a numeric variable, what is the value of the IntCount when the loop stops?
FOR IntCount = 1 to 6
Lbldisplay.text = IntCount
Next IntCount

a. 1
b. 5
c. 6
d. 7
e. 8

Q14. Programmers call the ____________ loop a posttest loop because the condition is tested at the end of the loop.
a. DO… UNTIL
b. DO… WHILE
c. FOR…NEXT
d. a and c
e. b and c

Q15. Items appearing within the parentheses after an event procedure’s name are called ____________.
a. arguments
b. controls
c. indexes
d. properties
e. values

Q16. The ____________ statement turns the error trapping process on
a. Error
b. On Error GoTo
c. On Error Process
d. Process Error
e. Trap Error

Q17. Which of the following descriptions and filters tells Windows to display only project filenames – those ending in either .vbp, .mak, or .vbg?
a. “Project Files(*.vbp;*.mak;*.vbg)| *.vbp|*.mak|*.vbg”
b. “Project Files(*.vbp;*.mak;*.vbg)| *.vbp;*.mak;*.vbg”
c. “Project Files(*.vbp|*.mak|*.vbg)| *.vbp;*.mak;*.vbg”
d. “Project Files|*.vbp;*.mak;*.vbg)| *.vbp;*.mak;*.vbg”

Q18. If you invoke the UpdateAge procedure, passing it a string variable named strFriend and an integer variable named intAge, which of the following is a correct Private Sub statement for the UpdateAge procedure?
a. Private Sub UpdateAge( )
b. Private Sub UpdateAge(intAge as integer, strFriend as string)
c. Private Sub UpdateAge intAge as integer, strFriend as string
d. Private Sub (UpdateAge) intAge as integer, strFriend as string




yo
AnswerRe: Who can answer the following? Pin
Dave Kreskowiak31-Aug-05 5:32
mveDave Kreskowiak31-Aug-05 5:32 
AnswerRe: Who can answer the following? Pin
Marcus J. Smith31-Aug-05 9:08
professionalMarcus J. Smith31-Aug-05 9:08 
Question.csv dataset confusion Pin
Vodstok31-Aug-05 3:16
Vodstok31-Aug-05 3:16 
AnswerRe: .csv dataset confusion Pin
Dave Kreskowiak31-Aug-05 5:27
mveDave Kreskowiak31-Aug-05 5:27 
GeneralRe: .csv dataset confusion Pin
Vodstok31-Aug-05 5:49
Vodstok31-Aug-05 5:49 
GeneralRe: .csv dataset confusion Pin
Dave Kreskowiak31-Aug-05 6:25
mveDave Kreskowiak31-Aug-05 6:25 
GeneralRe: .csv dataset confusion Pin
Vodstok31-Aug-05 6:35
Vodstok31-Aug-05 6:35 
GeneralRe: .csv dataset confusion Pin
Dave Kreskowiak31-Aug-05 8:31
mveDave Kreskowiak31-Aug-05 8:31 
GeneralRe: .csv dataset confusion Pin
Vodstok2-Sep-05 4:02
Vodstok2-Sep-05 4:02 
QuestionReal Life VB.NET projects Pin
iambijit31-Aug-05 0:42
iambijit31-Aug-05 0:42 
QuestionData Transfer Pin
nitin_ion31-Aug-05 0:16
nitin_ion31-Aug-05 0:16 
AnswerRe: Data Transfer Pin
Dave Kreskowiak31-Aug-05 4:42
mveDave Kreskowiak31-Aug-05 4:42 
GeneralRe: Data Transfer Pin
nitin_ion31-Aug-05 17:25
nitin_ion31-Aug-05 17:25 
GeneralRe: Data Transfer Pin
| Muhammad Waqas Butt |31-Aug-05 23:07
professional| Muhammad Waqas Butt |31-Aug-05 23:07 
GeneralRe: Data Transfer Pin
nitin_ion31-Aug-05 23:35
nitin_ion31-Aug-05 23:35 
Questionrun time error 70 Pin
Marc Soleda30-Aug-05 23:06
Marc Soleda30-Aug-05 23:06 
AnswerRe: run time error 70 Pin
Dave Kreskowiak31-Aug-05 4:39
mveDave Kreskowiak31-Aug-05 4:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.