THAKUR INSTITUTE SHOP NO. 36, SECOND FLOOR, CHAITANYA COMPLEX, BUS STAND BHOPAL (M.P.)462001 MOB. 9713222253,9300006806 Visual Basic Important Question with reference to Barkatullaha University Choose the correct answer (i) ________ hold the file names which are included in project: (A)Project Explorer Window (B)The properties window (C)The form layout window (D)None Ans.:(A)Project Explorer Window (ii) Ans.: (iii) Menu Editor option is available in _______ Menu: (A)View (B)Insert (C)Tools (D)None (C)Tools _______ Statement reads data from a disk and places the data into the record name variable: (A)Put (B)Get (C)Read (D)None Ans.: (iv) Ans.: (v) Ans.: (vi) Ans.: (vii) Ans.: (ix) Ans.: (x) _______is used to modify the structure of table: (A)Desc (B)Drop (C)Alter (D)Create (C)Alter The_______ merges the output of 2 or more queries into a single set of rows and columns: (A)Intersect (B)Minus (C)Add (D)Union (D)Union To get the property window in visual basic you have to press (A)F3 (B)F6 (C)F4 (D)F5 F4 To get the Project explorer in visual basic you have to press (A)ctrl + r (B)ctrl + p (C)ctrl + e (D)ctrl+o (A)ctrl+r To run the Project in visual basic you have to press (A)F5 (B)F4 (C)F2 (D)F3 (A)F5 Full form of IDE (A)Integrated Database Environment (B)Integrated Development Environment C, C++, JAVA, ORACLE, OS, DBMS, PROJECTS, VB6.0,Digital Computer Page 1 THAKUR INSTITUTE SHOP NO. 36, SECOND FLOOR, CHAITANYA COMPLEX, BUS STAND BHOPAL (M.P.)462001 MOB. 9713222253,9300006806 Ans.: (xi) Ans.: (xii) (C)Internal Database Engineering (B) Integrated Development Environment Full form of DCL (A)Data Communication language (C)Data Common Language (B) Data Control Language Join operation is subset of (A)Selection operation (C)Cartesian Product operation (D)None of the above (B)Data Control Language (D)None of the above (B)Projection operation (D)Union Operation Ans.: (xiii) _______ button is used to select multiple options from the list (A)Check (B)Option (C)Command (D)None Ans.: (xiv) Ans.: (xv) _______ box is used to send different types of information to the user(A)Message box (B)Input Box (C)Manager Box (D)None (A)Message Box _______ statement is use to place data into sequential data file(A)Input# (B)Write# (C)Put# (D)None Ans.: (xvi) Ans.: (xvii) Ans.: Create is _______ type of command (A)DML (B)DDL (C)DCL (B)DDL (D)None A _______ value can be inserted into the column of any data type (A)Zero (B)NULL (C)Nil (D)None (B)NULL (xviii) Value property of obtion button is set true if not selected (A)True (B)False Ans.: (xix) Which of the following control is used to hold picture on a form: (A)Label (B)Image (C)Text (D)None Ans.: (B)Image C, C++, JAVA, ORACLE, OS, DBMS, PROJECTS, VB6.0,Digital Computer Page 2 THAKUR INSTITUTE SHOP NO. 36, SECOND FLOOR, CHAITANYA COMPLEX, BUS STAND BHOPAL (M.P.)462001 MOB. 9713222253,9300006806 (xx) ______ is used to tell the user that program is loading and starting: (A)About Box (B)Splash Screen (C)Combo Box (D)None Ans.: (xxi) Which function is used to reverse the given string: (A)Reverse() (B)Strreverse() (C)REversestr() (D)None Ans.: (xxii) Eof is used to set the end of file: (A)True (B)False Ans.: (xxiii) The # statement is used to read the data from sequenctial: (A)True (B)False Ans.: (xxiv) Data in dataset are updatable: (A)True (B)False Ans.: (xxv) Table recordset is a live dataset: (A)True (B)False Ans.: (xxvi) Which of the following is a DML command: (A)Rollback (B)Insert (C)Create (D)None Ans.: (B)Insert (xxvii) Null value is equivalent to zero: (A)True (B)False Ans.: (B)False Short Answer Type Questions 1. 2. 3. 4. 5. What are different data types available in VB? Explain simple if statement used in VB? What is MsgBox? Explain? What is user define type? Explain with example? List and explain the file modes for data files? C, C++, JAVA, ORACLE, OS, DBMS, PROJECTS, VB6.0,Digital Computer Page 3 THAKUR INSTITUTE SHOP NO. 36, SECOND FLOOR, CHAITANYA COMPLEX, BUS STAND BHOPAL (M.P.)462001 MOB. 9713222253,9300006806 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 19. 20. 21. 22. 23. 24. 25. 26. 27. Explain the difference between a data control and data bound control. Explain various data type that a cell can hold in oracle? Write syntax and examples for creating a table and insertion of data into tables? What is sub query. How it can be implemented? What is concept of grouping expalin the Group by and having clause? Discuss the five types of VB Controls? What do you understand by event driven programming? Give example of passing arguments by value in visual basic procedures? Explain about the different ways of arranging the windows on an MDI form? How we can short data by using ORDER BY clause? What is the advantage of CHECK constraint? What is the difference between Compute By and Group By clause? Describe the Save point and Rollback to Save point Syntaxes? Explain the general syntax and example of the following: (A) if else (B)while loop (C)do loop (D)for loop Difference between input box and msgBox with suitable example? What is tool bar? Explain? List and explain the file mode for data files? What are different components of SQL? Discuss various methods of using SQL as record source? Describe: (A)Delete the table data only (B)Display data in sorted order of any one attribute Match The column: Data Type Number of bytes Boolean Byte Currency Date Double Integer Long Single 2 1 8 8 8 2 4 4 Long Answer Type Questions 1. 2. 3. 4. Explain Tool Box with its controls? Explain following loop control statement with expample : (i)While (ii)Until? Write a detailed note on common Dialog Box? Write short note on: (i)Control Array (ii)Splash Screen (iii)About Box (iv)Project explorer C, C++, JAVA, ORACLE, OS, DBMS, PROJECTS, VB6.0,Digital Computer Page 4 THAKUR INSTITUTE SHOP NO. 36, SECOND FLOOR, CHAITANYA COMPLEX, BUS STAND BHOPAL (M.P.)462001 MOB. 9713222253,9300006806 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. (v)Form layout Write the procedure for creating Data Report? Explain how to use the following advanced data handling forms: (i)Grids (ii)Validation (iii)Setting a record set (iv)Finding and filtering a record set. Expalin the following clauses with example. (i)Union (ii)Intersect (iii)Minus What is view. How a view can be created? What are data constraints. Write in detail about the types of data constraints? What is Join? Expalin Equi-Join and Self-Join with example? What is a variable? Mention the rules of naming a variable in VB? What are different types of operators used in VB? Explain each with the help of example? Difference between drop down menu and popup menu? What is a menu editor? Discuss the purpose of Enabled, Visible check box? Write an event procedure in VB to check whether the given string is a palindrome or not and fint the length of the string? What are different file controls available in Visual Basic?GIve appropriate codes for connecting these file controls? What are the advantages of ADO Data Control? Explain about different objects of ADO model? Explain in detail the creation and deletion of table in SQL? Explain Different Functions in SQL? Define the following types of joins with example? (A)Inner join (B)Left outer join (C) Right outer join? (D)Creating table (E)Inserting Data (F)Modifying the structure of table (G)Renaming table (H)AVG() (I)MIN() (J)COUNT() (K)MAX() (L)POWER() (M)LTRIM() (N)TO_CHAR() (O)TO_DATE() (P)TO_NUMBER() Explain various I/O Constraints in detail? What are the controls of VB projects? Explain different types of controls? Explain the List Box and Combo Box control in detail and write difference between them with example? What do you understand by database connectivity to Visual Basic? What are the options available to connect a database in Visual Basic. Explain any two controls? Write procedure to creating and usin array? What is sequence? How it is created? Explain with example? Discuss writing functions and its calling methods? C, C++, JAVA, ORACLE, OS, DBMS, PROJECTS, VB6.0,Digital Computer Page 5