CS 783

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Student Declaration

I__________________________________ Registration No.__________________, hereby

declare that I will not be involved in any kind of cheating/copying/plagiarizing in solving the

assignment based paper of Mid Term Examination 2021. I take full responsibility of my

conduct. If I found involved in any kind of such activity of cheating/copying/plagiarizing

then Institute reserves the right to take any disciplinary action against me.

Student Signature
Mid Exam / Spring 2021 (Paper Duration 24 hours)
To be filled by Teacher

Course No.: CS-783Course Title:Visual Programming_


Total Marks:18 Date of Exam: 27/04/2021____________________
Degree: MCSSemester:3Section: _________A_____________
Marks
Q.No. 1 2 3 4 5 6 7 8 9 10 Obtained/
TotalMarks
Marks
Obtaine
d
Total Marks in Words:
Name of the teacher: Imran Shehzad
Who taught the course:Signature of teacher / Examiner:

To be filled by Student

Registration No.: ____________________________Name:____________________________

Answer the following questions.

Q.No.1.Suppose you are hired as a desktop application developer at Barani Institute of Science
Sahiwal. Development team including you is working to develop a desktop-based Student Enquiry
System. You have to develop a user registration & login forms for this application.Follow the
instructions to design above said forms in C#. (10)

1. Register User Form


a. Create a new project in C#.
b. Draw C# controls on a new form for following fields.
i. user name
ii. contact number
iii. email address
iv. password.
c. Insert a Button named “Register User” .
d. Display a message box to user after registration.
Mid Exam / Spring 2021 (Paper Duration 24 hours)
To be filled by Teacher

Course No.: CS-783 Course Title: Visual Programming _


Total Marks: 18 Date of Exam: 27/04/2021____________________
Degree: MCS Semester: 3 Section: _________A_____________
Marks
Q.No. 1 2 3 4 5 6 7 8 9 10 Obtained/
TotalMarks
Marks
Obtaine
d
Total Marks in Words:
Name of the teacher: Imran Shehzad
Who taught the course:Signature of teacher / Examiner:

To be filled by Student

Registration No.: ____________________________ Name: ____________________________

Answer the following questions.

Q.No.1.Suppose you are hired as a desktop application developer at Barani Institute of Science
Sahiwal. Development team including you is working to develop a desktop-based Student Enquiry
System. You have to develop a user registration & login forms for this application.Follow the
instructions to design above said forms in C#. (10)

1. Register User Form


a. Create a new project in C#.
b. Draw C# controls on a new form for following fields.
i. user name
ii. contact number
iii. email address
iv. password.
c. Insert a Button named “Register User” .
d. Display a message box to user after registration.
2. Login Form
a. Draw C# controls on a new form for following fields.
i. user name
ii. Password
b. Insert a Button named “Login” and register its click event for following.
i. When user will type user name & password in given boxes and click login, your
application will match the user name as “admin” and password as “admin”.
ii. Display a “login Successful” via Message Box if given credentials are matched&
display a “login failed” via Message Box otherwise.
g. Must test your code on your Computer.
h. Take screenshot of both forms and paste in MS Word.
i. Copy all your c# code and paste in MS Word.

Answer:

Q.No.2.What is .NET Framework? Discuss main components of .NET Framework in detail. (4)
Answer:
What is a Net Framework?

The Framework Net is a software development platform developed by Microsoft for creating and
operating Windows applications. The Net framework contains developer tools, programming
languages, and libraries for desktop and web applications. It is also used to build websites, web
resources, and games.
The Net Framework was projected to create applications, which would run on the Windows
Platform. In 2002 the first version of the .Net framework was released which is is called the .Net
framework 1.0. The Microsoft .Net framework can be used to create both - form-based and web-
based applications. Web services can be created and using the Net framework.
This framework also supports different programming languages for example C and Visual Basic. C.
Engineers can therefore select and select a language to develop the required program.
The Framework Net is a platform that provides technologies and tools for the development of web,
Windows and Enterprise applications. It consists of four parts,
1. Standard Language Use (CLR)
2. Framework Network Library.
3. General Type of Programs (CTS)
4. Common Languages (CLS) Specification

1. Standard Language Use (CLR)

The Net Framework provides a working time environment called Common Language Runtime
(CLR) .Provides an environment for using all Net programs. The code that operates under CLR is
called Managed Code. System programmers do not have to worry about memory management
when programs work under CLR as it provides memory management and cable management.
For the system, when our system requires memory, CLR assigns the measurement memory and
assigns the memory when the size is completed.
Currently there are more than 15 language integrators developed by Microsoft and other code-
generating companies that will operate under CLR.
-2.Net Framework Class Library (FCL)

This is also called Base Class Library and is common to all types of applications i.e. access to classes
and library paths on VB.NET will be the same as C #, and is common to all other languages on .NET.

The following are various types of applications that can use the .net library.
• Windows Application.
• Console Application
Web application.
• XML Web resources.
• Windows Services.
In short, developers simply need to incorporate BCL into their language code and use its predefined
methods and structures to perform common and complex tasks such as reading and writing filing,
rendering diagrams, data communications and XML document manipulation.
Below are a few other concepts we need to know and understand as part of this framework of the
Net.
3. General Type of Programs (CTS)
Defines the types of data types that can be used in different Net languages in the same way. CTS
ensures that objects are written in different languages .Languages can interact.
To communicate between programs written in any of the languages of the NET complaints, the types
must be in line with the basic standard.
The standard type system supports two common types of types:
Values:
Prices contain their exact details, and pricing conditions are assigned to a stack or assigned to a line
in a building. Price types can be built in (including operating time), user-defined, or calculated.
Types of directions:
Index types keep reference to the memory memory value, and are distributed in bulk. Index types
can be descriptive types, cursor types, or visual interface types. The type of reference type can be
determined from the values of the self-explanatory types. Self-explanatory forms are further
subdivided into order and class types. Types of classes by user-defined classes, box price types, and
messengers.
4. Common Languages (CLS) Specification
A small collection of CTS also specifies a set of rules that need to be adhered to or complied with by
all language coordinators referred to CLR. It helps to correct the legacy of the horizontal language
and correct the errors of the different language.
Common Definition Rules:
Defines minimum and complete features to produce code that can be captured by CLR
. It ensures that compiler products will work well in the NET environment.
Dynamic Language Runtime from Microsoft operates further than Common Language Runtime
(CLR) and provides computer language services in dynamic languages. These services include:
• A powerful type of program, to be distributed in all languages using DLR resources
• Power delivery
• Dynamic code generation
• API hosting
DLR is used to use powerful languages in the .NET Framework, including the IronPython and
IronRuby project.Because strong language use shares the same basic structure, they should be easy
for them to communicate with others. For example, there should be the use of libraries from any
dynamic language or any other dynamic language. In addition, the hosting API allows interaction
with CLI encrypted languages such as C # and Visual Basic .NET.
5. Application domain.
Apps and workspace locations typically offer some sort of distinction between apps. For example,
Windows uses processes to separate applications. This separation is necessary to ensure that the
code running on one application cannot adversely affect other unrelated applications.
App domains provide a separation boundary for security, reliability, and conversion, as well as
downsizing. App domains are usually created by working-time administrators, who are responsible
for implementing common language working hours before the program is implemented.

Q.No.3.Define and discuss all classes of ADO .Net,provide code exampleswhere if needed. (4)
Answer:

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