Sunteți pe pagina 1din 4

CS-612 Solved Asssignment 2011

Question 1: (a) What is a worksheet? How to create and format controls on worksheet.

• In the Microsoft spreadsheet program Excel, a single document is known as a 'workbook' and by default each workbook
contains three arrays or 'worksheets'. One advantage of such programs is that they can contain formulae so that if
one cell value is changed, the entire document is automatically updated, based on those formulae.

• If one or more controls is an ActiveX control:

Make sure that the Developer tab is available.
Display the Developer tab

Make sure that you are in design mode. On the Developer tab, in the Controls group, turn on
Design Mode .
Select the control that you want to resize.
For more information, see Select or deselect controls on a worksheet.

Do one of the following:

Resize by using the sizing handles

Position the pointer over one of the handles.

Do one of the following:

To increase or decrease the size in one or more directions, drag the mouse away from or toward
the center.
To keep the center of a control in the same place, hold down CTRL while you drag the mouse.
To maintain the control's proportions, hold down SHIFT while you drag the mouse.
To maintain the proportions while keeping the center in the same place, hold down CTRL and
SHIFT while you drag the mouse.
Release the mouse, and then release CTRL or SHIFT.
Resize by entering measurements

Right-click the selection, and then click Format Control.

On the Size tab, enter measurements for the height and width of the control, or click the up or
down arrow keys to move the height and width.
To maintain the control's proportions, select the Lock aspect ratio check box.
NOTE The Reset button (which resets the original height and width), the Rotation text box, and
the Relative to original picture size check box are not available.

Question 2: (b) What is need of a web browser? List the advantages and disadvantages of different

• After you click OK, Excel’s Function Arguments dialog appears and allows you to define the four values.
You’ll see that your starting cell and the formula bar show the beginning part of the function =VLOOKUP().
The Function Arguments dialog adds the needed data elements that will display between ().

• HLOOKUP is the exact same function, but looks up data that has been formatted by rows instead
of columns.If you have a table of Student ID numbers, Student Names and Grades, you can set
up Excel so that if a Student ID number is supplied by the user, it will look through the table and
output the student's name and grade.

Question 2: (b) What is FTP? Explain how it is different from telnet.

• FTP is an acronym for File Transfer Protocol. As the name suggests, FTP is used to transfer files between
computers on a network. You can use FTP to exchange files between computer accounts, transfer files between
an account and a desktop computer, or access online software archives. Keep in mind, however, that many FTP
sites are heavily used and require several attempts before connecting.
• 1.FTP is a protocol used specifically for transferring files to a remote location, while Telnet allows a user to
issue commands remotely.

2. FTP can be used with a command line, a dedicated application, and even with most web browsers, while
Telnet is restricted to the command line.

3. There are ways to use FTP in a secure environment, while Telnet will always be unsecured.

4. FTP is a well-known and reliable method of uploading files to web servers, while Telnet is now commonly
used in diagnosing network services.

Question 3: (a) What is Konigsberg Bridge problem? Explain with a suitable diagram.
• The Seven Bridges of Königsberg is a notable historical problem in mathematics. Its negative resolution by
Leonhard Euler in 1735 laid the foundations of graph theory and prefigured the idea of topology.

The city of Königsberg in Prussia (now Kaliningrad, Russia) was set on both sides of the Pregel River, and
included two large islands which were connected to each other and the mainland by seven bridges.

The problem was to find a walk through the city that would cross each bridge once and only once. The islands
could not be reached by any route other than the bridges, and every bridge must have been crossed completely
every time (one could not walk half way onto the bridge and then turn around and later cross the other half from
the other side). Euler proved that the problem has no solution.

→ →
Question 3: (b) Prove sum of n terms is n(n+1)/2 by using Gauss trick method .

• Using the tried and true method, we get

S=1+ 2 + 3 + … + (n – 2) + (n – 1) + n.

S = n + (n – 1) + (n – 2) + … + 3 + 2 + 1.

So doing what now comes naturally, we get

2S = (n + 1) + (n + 1) + (n + 1) + … + (n + 1) + (n + 1) + (n + 1).

As there were n numbers to start with, there must now be n lots of (n + 1). So

2S = n × (n + 1).

So S = (n x (n+1))/ 2.

In 1 + 2 + … + 6 + 7, ‘any number’, n is 7, so the sum of these numbers is (7 x 8) /2 = 28.

In 1 + 2 + … + 92 + 93, ‘any number’, n is 93, so the sum of these numbers is (93 x 92)/2 = 4278.

So the sum that we want is 4278 – 28 = 4250.

Question 4: (a) What is a dialog box? Explain with example how to create dialog boxes in Ms-Excel.

• In a graphical user interface of computers, a dialog box (or dialogue box) is a type of window used to enable
reciprocal communication or "dialog" between a computer and its user. It may communicate information to the
user, prompt the user for a response, or both. A dialog box is most often used to provide the user with the means
for specifying how to implement a command, or to respond to a question or an "alert" (see below).

Dialog boxes are classified as "modal" or "modeless", depending on whether or not they block interaction with
the software that initiated the dialog. The type of dialog box displayed is dependent upon the desired user

Question 4: b) Explain with example how to create database in Ms-excel.

• The data must be in column form with the field names in the first row. While the data may start in any row, this subroutine
assumes that row 1 contains the field names and anything beneath row 1 is data for the table.
• The data must be contiguous. Data missing within a record will not affect this subroutine adversely. However, after a blank
row is encountered, the subroutine will assume that it has retrieved all of the data on the current worksheet. Likewise, once
a blank column is encountered, the subroutine will assume that there are no more fields to the right.
• Each column will be regarded as a field and each row will be regarded as a record. For example, the data should be set up as
• Lname Fname EmpNum SpouseName
• Ebbeson Frida 12 Dave
• Edelstein Alex 15
• Edmonds Cora 18 Paul
• Eliasen Deborah 22 Tom
• Erickson Gregory J 25 Lisa
• Fallon Scott 23
• Feig Wayne A. 35 Laurie
• Fetty Ellen M. 54 James

Please note that incomplete records are allowed.