Edited Event 4th Reg
Edited Event 4th Reg
COLLEGE OF UG
FINAL EXAM
Event Exam
Course Title Facility Info E. Year 2013 Program REG -------
Date
A. Year Max.
Course Code -------- Department IT 2016 Semester 1 40 %
Weight
Instructor Section Time
Deresse C. Year 4 A 1:30
Name Allowed
INSTRUCTION
Make sure the exam paper contains 4 pages including the cover page.
Make sure the exam paper contains the appropriate number of question in appropriate parts.
Answer the question according to the instructions given for each part.
Write your answer neatly on the space provided.
Mobile phone should be switched off.
Cheating in any form will result punishment without prior notice.
PART I: Choose the best answer from the given alternative [30 pts.]
1.
1. Which one of the following is the goal of .NET Framework?
A. Support of Industry Standards C. Easier Deployment
B. Extensibility D. All
2. Which one of the following is the components .NET Framework
A. Common language run time C. Windows Applications
B. Data Classes D. All
3. What access modifier should you use to make sure that a method in a class can only be
accessed inside the same assembly by derived types?
A. Make the class public and its members public.
B. Make the class public and its members protected.
C. Make the class internal and its members internal.
D. Make the class internal and its members protected.
4. You need to expose some data from a class. The data can be read by other types but can
be changed only by derived types. What should you use?
A. A protected field
B. A public property with a protected set modifier
C. A protected property
D. A protected property with a public get modifier
5. You want to create a hierarchy of types because you have some implementation code you
want to share between all types. You also have some method signatures you want to
share. What should you use?
A. An interface C. An abstract class
B. A class with virtual methods D. A sealed class
6. You want to inherit from an existing class and add some behavior to a method. Which
steps do you have to take?
A. Use the abstract keyword on the base type.
B. Use the virtual keyword on the base method.
C. Use the new keyword on the derived method.
D. Use the override keyword on the derived method.
7. The __________ property holds the text that is displayed on the face of the button.
A. Name C. Tag
B. Text D. Face
8. A namespace is container that holds __________.
A. methods C. spaces
B. names D. classes
9. A(n) __________ is a method that executes when a specific event takes place while an
application is running.
A. action process C. runtime procedure
B. event handler D. event method
10. The time during which you build the GUI and write the application’s code is referred to
as_____.
A. run time C. code time
B. design time D. planning
11. When you want to display text on a form, you use a __________ control.
A. Button C. Label
B. PictureBox D. TextBox
A. nested C. dislodged
B. tiered D. hierarchical
13. When you run an application, the application’s form is loaded into memory and an event
A.known
Startup
as event
the __________ takes place. C. Load event
B. Begin event D. Initialize event
14. Writing the code to perform a task once and then reusing it each time you need to perform
the task is a benefit of using methods called __________.
15. When you call a(n) _______, it simply executes the statements it contains and then
terminates.
16. The _______is a collection of statements enclosed inside a set of curly braces that are
performed when the method is executed.
17. The __________ creates an object in memory and returns a reference to that object.
18. A(n) __________ is an object that can hold a group of values that are all of the same data
type.
A. array C. container
B. collection D. set
19. The term __________ refers to an object’s ability to take different forms.
A. multi-instance C. polymorphism
B. by referencing D. oligopoly
20. The __________ declares that a derived class is allowed to override a method.
21. A(n) __________ is software that is specifically designed to store, retrieve, and manipulate
large amounts of data in an organized and efficient manner.
22. A __________ can display an entire database table in a scrollable grid on an application’s
form.
1. using System;
namespace Exam{
class Question1{
System.Console.WriteLine(“GOOD LUCK!”);
} }}
2. using System;
namespace Exam{
class Question2{
{ Console.WriteLine (j + ","); }
} }}
Answer Sheet
PART - I
1. ________________
2. ________________ 6. ________________ 10. ________________
3. ________________ 7. ________________ 11. ________________
4. ________________ 8. ________________ 12. ________________
5. ________________ 9. ________________ 13. ________________
PART - II
1.
2.
PART - III
1.
2.
GOOD LUCK