Grade 10 Angel International School - Manipay 1 st Term Examination November, 2015 Information & Communication Technology Duration: 3.00 Hours Part 1 Choose the appropriate answer 1) Find the correct type declaration from the following list. a) int x,y; c) Dim x,y as integer b) Dim x,y as integer; d) Dim x y as integer 2) Which is not in a Visual Programming a) Visual Basic b) Visual Foxpro 3) Which is not an data type in Visual Basic a) Integer b) Double c) Visual C d) Visual Java c) String d) Word Index No: 4) Which is the symbol for comment in Visual Basic Program a) // b) /* c) d) 5) What will be output of the following statement Print AISM, ; Print Manipay, Print Print Chavakacheri a) AISM, c) AISM, Manipay, Manipay, Chavakacheri Chavakacheri. b) Manipay AISM, d) AISM, Manipay, Chavakacheri Chvakacheri 6) What is the default data-type in Visual Basic? a) String b) Integer c) Variant d) VB does not have a default data-type 7) What is the default property of a check box? a) Value b) Caption 8) The application name always appears in the: a) Properties window b) Title bar 9) The color of a button is: a) One of its properties b) Not updateable c) Defined in the project d) Defined in the Intermediate window 10) Code is: a) Updateable in the form editor b) Seldom used c) Checked d) Text c) Intermediate window d) Code window c) An object d) Instructions 1
11) Controls are: a) Code b) Part of the menus c) Objects d) Rules 12) The location of the form on the desktop during execution is determined by the: a) Form Designer window c) Project Explorer window b) Form Layout window d) Context Menu 13) Visual Basic forms are identified by a: a).frm suffix b).mak suffix 14) To exit Visual Basic: a) Use the File Menu to select Quit b) Use the Window Menu to select Exit c) Click on the diskette icon d) Click Alt-Q 15) The text property of a text box behaves like a? a) numeric b) variant c).for suffix d) A special icon c) string d) function 16) Which one of the following is the correct syntax to make a control called Pic1.visible? a) Visible.Pic1 = True c) Pic1.Invisible = False b) Pic1.Visible = True d) Pic1.Enabled = True 17) What would be the result of Val (Text1.Text) if you entered in: (Rs 3,000) a) 0 c) 3 b) 3000 d) Run-Time Error 18) What is the maximum caption size for a text box? a) 240 characters b) 255 characters c) Unlimited d) Text box does not have a Caption property 19) What is the maximum caption size for a label? a) 240 characters b) 255 characters c) Unlimited d) Label does not have a Caption property 20) The keyboard short cut for Run: a) F4 b) F5 c) F6 d) F7 21) Which of the following is not a programming? a) Microsoft word b) Microsoft VB.net 22) Which is the correct full meaning of VB? a) Variable Book b) Visual Book c) Microsoft VB 6.0 d) None of the above c) Variable basic d) Visual basic 23) Select proper RUN command for open VB6: a) Vb6.0 b) Vbs c) Vb6 d) Vb 6.0 24) The keyboard shortcut for Properties: a) F6 b) F4 25) What is the use of this underscore (File)? a) Shortcut b) Exclusive mode c) Ctrl + P d) F10 c) Style d) Nothing 2
1. What is variables? Part- B Write correct answer for the following 2. What are the operators in VB programming and give some expressions in every operators? 3. How to write Visual Basic statement for appear given message box when click any button. Hi Students!, Have a Nice Exam OK Cancel 4. Fill up the vbcode view area: Private Sub Timer1_Timer() Timer1. Interval=... Label1 =. 5. Write down the numbered area Name? 7 1 2 6 8 9 3 4 5 10 3
6. Fill the blank lines with proper codes: x = Val(..Text) y = Val(Text2. ) If x > Then ma = x ma = y Text3.Text = ma If x < y mi = x mi = y..text = mi Private Sub Command2_Click().Text = "" Text2.Text = "".Text = "" Text4.Text =.. Text1.SetFocus 7. From NIC no to DOB Caculation: Private Sub Command1_Click() Text2.Text = Mid(....text, 3, 3) If Mid(Text1.Text, 3, ) > 500 Then Text3.Text = ".." Text3.Text = "Male" Text4.Text = "19" & Left(Text1.Text,.) If Text3.Text = "Male" Then Text5.Text = Day(..(Text1.Text, 3, 3)) Text5.Text = Day(Mid(Text1.Text, 3, 3) - 500) If Text3.Text = "Male" Then Text6.Text = (Mid(Text1.Text, 3, 3)) Text6.Text = Month(Mid(Text1.Text, 3, 3) - 500) Text7.Text = & "-" & Text6.Text & "-" &.. 4
8. Forms and Normal Math: Private Sub Command1_Click()....Hide Form2. Private Sub Command2_Click() Private Sub Command3_Click() Dim n As.. Dim x, y, sum As.. n = Text1.Text x =.(Text2.Text) y = Val(Text3.Text) sum = x. y Text4.Text = sum Private Sub Command4_Click()....Text = "" Text2.Text = "" Text3. t = "" Text4.Text = "" Text1.. ***** 5