0% found this document useful (0 votes)
55 views7 pages

Edited Event 4th Reg

This document outlines instructions for a final exam. It provides exam instructions, sample exam questions in various formats like multiple choice and code writing. It also provides information about the course, date, time and other exam details.

Uploaded by

Dawit Sebhat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views7 pages

Edited Event 4th Reg

This document outlines instructions for a final exam. It provides exam instructions, sample exam questions in various formats like multiple choice and code writing. It also provides information about the course, date, time and other exam details.

Uploaded by

Dawit Sebhat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

ALLIANCE COLLEGE

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

Name _____________________________ ID. No ______________________

Section ___________________________ Department _________________

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

ALLIANCE COLLEGE Page 1


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

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

12. A ____________ decision structure is written inside another decision structure.

A. nested C. dislodged
B. tiered D. hierarchical

ALLIANCE COLLEGE Page 2


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

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 __________.

A. code reuse C. method recycling


B. the single-use philosophy D. code reprocessing

15. When you call a(n) _______, it simply executes the statements it contains and then
terminates.

A. intrinsic method C. logical method


B. empty method D. void method

16. The _______is a collection of statements enclosed inside a set of curly braces that are
performed when the method is executed.

A. method body C. method code


B. method designation D. method classification

17. The __________ creates an object in memory and returns a reference to that object.

A. = operator C. reference variable


B. object allocator D. new operator

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.

A. void keyword C. base keyword


B. protected keyword D. virtual keyword

21. A(n) __________ is software that is specifically designed to store, retrieve, and manipulate
large amounts of data in an organized and efficient manner.

ALLIANCE COLLEGE Page 3


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

A. software development kit D. application programming interface


(SDK) (API)
B. database management system E. driver development kit (DDK)
(DBMS)

22. A __________ can display an entire database table in a scrollable grid on an application’s
form.

A. scrollable data control C. SmartGrid control


B. Table control D. DataGridView control

Part-II: Write an output of the given programs 2 points each

1. using System;

namespace Exam{

class Question1{

public static void Main(string[] args) {

System.Console.WriteLine(“GOOD LUCK!”);

} }}

2. using System;

namespace Exam{

class Question2{

public static void Main(string[] args) {

for(int j=0; j<5;j++;)

{ Console.WriteLine (j + ","); }

ALLIANCE COLLEGE Page 4


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

} }}

Part-III: Code Writing


1. Write the C# program which checks a given number is even or odd. (3 points)
2. What is the difference between console and windows form application (3 points)

Answer Sheet

Event driven 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

Name _____________________________ ID. No ______________________

Section ___________________________ Department _________________

PART - I

1. ________________
2. ________________ 6. ________________ 10. ________________
3. ________________ 7. ________________ 11. ________________
4. ________________ 8. ________________ 12. ________________
5. ________________ 9. ________________ 13. ________________

ALLIANCE COLLEGE Page 5


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

14. ________________ 17. ________________ 20. ________________


15. ________________ 18. ________________ 21. ________________
16. ________________ 19. ________________ 22. ________________

PART - II

1.

2.

PART - III

1.

ALLIANCE COLLEGE Page 6


ALLIANCE COLLEGE
COLLEGE OF UG
FINAL EXAM

2.

GOOD LUCK

ALLIANCE COLLEGE Page 7

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy