Set No.

Code No: 321901 III B.Tech. II-Semester Supplementary Examinations, November-2003 VISUAL PROGRAMMING TECHNIQUES (Electronics and Computer Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --1. 2. 3. a) b) 4. a) b) 5. What is IDE. Explain the various features of IDE of Visual Basic. Discuss the various parts of the VC++ program with the help of a neat diagram, Write a program to center text in the client area of the window? Describe how to find the size of a window? Write a program to create a list box in a window. Write a program to perform operations like addition, deletion, insertion of items in a list box. A customer is buying items from a super shoppe. Write a VB implementation that accepts his name, credit card no, and the list of items purchased and the cost of each item (any no of items). These data are put in a file, for later retrieval by the packaging and accounts departments. Write a VB debugging code to debug the errors in addition and subtraction operations of a calculator. A College declares the results of it's students as first class, second class, third class or fail depending on whether the average marks scored by the candidate in 3 subjects is >=60%, between 50% and 60%; between 35% and 50% or less than 35% respectively. Write a VB application to accept the name and marks scored by a student in three subjects and calculate his result. Explain the Browser control using VC++.

1

6. 7.

8.

###

Set No.
Code No: 321901 III B.Tech. II-Semester Supplementary Examinations, November-2003 VISUAL PROGRAMMING TECHNIQUES (Electronics and Computer Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --1. 2. 3. State the purpose of IDE. Explain the various features of IDE of VC++. Define Device Context. Explain the purpose of the Device context with the help of a neat diagram. Write a program that permits the user to type characters after clicking the left mouse button in the client area of the window after choosing an appropriate font before writing the text. Create a combo box in a window. Write a program to perform operations like addition, deletion, insertion of items in the list box. A file contains the no. of seats available in a bus and the seat numbers that are already reserved. Whenever a new customer wants to reserve seats, this file is to be opened, the number of seats as required by the customer are marked reserved and the file is closed (If it is not possible to reserve, it should indicate so) Suggest a VB implementation. Write a VB debugging code to debug the multiplication and division operations of a calculator. Assume that Income tax is payable at the rate of 25% of gross salary if it is between 1.5 and 2 lakhs, 25% if it is between 2 to 3 lakhs, and 30% beyond 3 lakhs. Suggest a VB implementation that accepts the name of a person, his basic salary, DA, HRA and CCA and computes his tax payable and displays the result. How do you develop internet applications using Visual Basic? ###

2

4. a) b) 5.

6. 7.

8.

Set No.
Code No: 321901 III B.Tech. II-Semester Supplementary Examinations, November-2003 VISUAL PROGRAMMING TECHNIQUES (Electronics and Computer Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --1. 2. 3. a) b) 4. 5. What are the various steps required in developing an application in VC++. Give an Overview of MFC. Mention the various classes of MFC in VC++ and explain them with an example. What is a caret? How do you add a caret to a window? Write a routine for showing and hiding a caret when the user loses or gains focus. Using control Array, design a simple calculator. A hotel maintains a folder for each room in it. There is a file for each occupant containing information about the occupant, advance paid, rent payable / paid and other details. When the person checks out, the file is closed but retained in the folder. Suggest a VB implementation. What are the various OLE object techniques. What are the advantages of DLL’s over Library module files? Without using Data control in VB, connect to some database in your system using DAO. Implement all the buttons provided in the data control using command buttons. What is Microsoft jet data base engine? Explain how to visit the web site www.hotmail.com from your VB application using web browser control. Explain how to insert Active X control in VB.

3

6. a) b) 7. a) b) 8. a) b)

###

Set No.
Code No: 321901 III B.Tech. II-Semester Supplementary Examinations, November-2003 VISUAL PROGRAMMING TECHNIQUES (Electronics and Computer Engineering) Time: 3 hours Max. Marks: 80 Answer any FIVE questions All questions carry equal marks --1. a) b) 2. Explain different files generated by the App wizard. Explain briefly various constants & variables used in V.B. Discuss document/view architecture. What are the advantages of having such architecture? Explain how objects interact with each other.

4

3. a) Write a program that generates cascaded menus. b) Describe how to generate a pop up menu at the position where the right mouse button is clicked. 4. a) b) 5. Write a simple program using timer control. Explain how to use scroll bar as input element. A company is maintaining a master file of it's customers in the format name, address, outstanding credit. As and when they hold transactions (can be either purchases, which increase their credit balance or payments which reduce the credit standing in his name) - during the day, the details are written into another transaction file. At the end of the day, the master file is to be updated from the transaction file. Write a VB implementation. What is OLE. example. Compare object linking and embedding with the help of an

6. 7.

An inventory file contains data about the items in a store, the item code, code numbers, quantity on hand and the reorder level. Whenever an order comes for an item, the item is to be dispatched and balance updated. Similarly when supplies come, the balance is updated. When the quantity on hand falls below reorder level, a message that fresh stocks are to be procured is to be flashed. Suggest a VB implementation. Explain the steps in developing DHTML applications using Visual Basic. ###

8.