Você está na página 1de 2

Bahir Dar University, School of Computing

Event Driven Programming Mid-Exam


Name______________________________ Id ______________________
Part I: Choose the best answer and write your answer on the answer sheet provided.
1)
a.
b.
c.
d.

Which of the following shows the correct order for creating a Visual Basic program?
Set the properties, create the interface, write the code
Create the interface, set the properties, write the code
Create the interface, write the code, set the properties
Write the code, set the properties, create the interface

2) Which window do you open if you want to see all of the objects that you can add to a form?
a. The Toolbox
c. The Properties window
b. The Solution window
d. The Form Designer
3) Which is not a property of the Common control class?
a. Show
c. Font
b. BackColor
d. ForeColor
4)
a.
b.
c.

Which is not a main component of the Visual Studio IDE?


Solution Explorer
d. Designer Window
Tool Box
e. Properties Window
Start Menu

5)
a.
b.
c.

Which are the standard prefixes for the text box and label controls respectively?
txt and lbl
d. txb and lab
tex and lab
e. txt and lab
txb and lbl

6) indicates whether a particular condition is on or off.


a. Combo box
c. Check box
b. List box
d. None of these
7) . Property designates the text appearing in the forms title bar.
a. Text
c. Enable
b. Name
d. None of above
8)
a.
b.
c.

An object is composed of:


properties.
methods.
events.

9) Which control is an example of an object in C#?


a. Button
c. Textbox
b. Label
d. Both a and b.

d. Both a and b.
e. All of the above.

e. All of the above.

Part II: Write your answer for the following questions on the answer sheet provided
10) The following questions are based on an object Dog. Write property, method and event if
the given example is property, method and event of the dog respectively.
a. Height
e. Intruder coming in
i. Owner coming in
b. Barking
f. Singing
c. Biting
g. Weight
d. Wagging
h. Color
11) Write the condition to be considered or checked before choosing C# programming language to
develop software.
12) Bahir Dar Technology Institute decided to pay bonus payment to non-caffee students in
addition to their regular monthly payment for Christ Mass Holiday. The amount of bonus is
250 birr for male students and 300birr for female students. If regular monthly payment of
male student is 400 birr, the total payment will be 400+250=650birr. Write an application
using C# that accepts monthly payment & sex and computes total payment by adding the
bonus. The user interface is shown below. Use default control names if necessary.

13)

Suppose Bahir Dar Technology


Institute wants develop an application
that is used to compute results of job
vacancy applicants. The user interface
is shown on the right side. Write C#
code that is used to accept interview
result out of 80% and certifications
each weighs 5%, and compute the
total result. If user enters 70 in the
first textbox and ticks Programming
and database, then the total result is
70+2*5=80. Use default control
names if necessary.

Você também pode gostar