Visual Programming Assignment No1
Visual Programming Assignment No1
CS-692
Assignment
No. 1
Instructions:
Install Visual Studio 2015 or Later Version on Your PCs to run the Code
Last Date is: Before or on the Day of Mid Visual Programming Paper
Theoretical Questions
Answer the following Questions.
Question# 1 Define the following terms
a. .Net Framework
.NET is a developer platform made up of tools, programming languages, and libraries for
building many different types of applications.
There are various implementations of .NET. Each implementation allows .NET code to execute
in different places—Linux, macOS, Windows, iOS, Android, and many more.
1. .NET Framework is the original implementation of .NET. It supports running websites, services,
desktop apps, and more on Windows.
NET Framework Class Library is the collection of classes, namespaces, interfaces and value
types that are used for .NET applications.
h. Visual Programming
Question# 2 why the following files are used in .Net applications (window and web application)
a. app.config
b. web.config
c. Program.cs
Also, discuss the contents which can be added to each of these files.
Question# 3 What are the difference between Windows and Web applications?
It is specific to bit. If it is
The web application is
5. designed for 32-bit OS, it will not
independent of type of system.
work for 64-bit operating system.
Question# 4 What are the differences between JAVA and C-Sharp language?
Java vs C#
Last Updated: 18-05-2020
C# is a general-purpose, modern and object-oriented programming language pronounced as “C
sharp”. It was developed by Microsoft led by Anders Hejlsberg and his team.
Question# 5 What are the qualities of good project (Window or Web based)?
Well Designed and Functional. Your site reflects your company, your products, your services and
ultimately your brand. ...
Easy to Use. ...
Optimized for Mobile. ...
Fresh, Quality Content. ...
Readily accessible contact and location. ...
Clear calls to action. ...
Optimized for Search and the Social Web.
The difference between Write() and WriteLine() method is based on new line
character. Write() method displays the output but do not provide a new line
gtfcharacter. WriteLine() method displays the output and also provides a new
line character it the end of the string, This would set a new line for the
next output.
Question# 10 Differentiate between Double and double; String and string, int, Int16, Int32 and
Int64.
Double is an object and double is a primitive data type. ... The Double class
wraps a value of the primitive type double in an object. An object of type
Double contains a single field whose type is double
String (capital S) is a class in the .NET framework in the System namespace. The fully qualified
name is System.String. Whereas, the lower case string is an alias of System.String.
Int16: This Struct is used to represents 16-bit signed integer. The Int16 can
store both types of values including negative and positive between the ranges
of -32768 to +32767
Int32: This Struct is used to represents 32-bit signed integer. The Int32 can
store both types of values including negative and positive between the ranges
of -2147483648 to +2147483647
Int64: This Struct is used to represents 64-bit signed integer. The Int64 can store both types of
values including negative and positive between the ranges of -9,223,372,036,854,775,808 to +9,
223,372,036,854,775,807
Question# 11 Define the syntax of using
a. if statement
c. if-else statement
d. nested if-else statement
e. switch statement
f. for loop
g. while loop
h. do-while loop
i. Give programming example of break and conditional operators in C-Sharp
j. declaring and initializing one dimensional array
k. declaring and initializing two dimensional array
Question# 12 What are command line arguments? How command line arguments are used
Question# 13 What are Strings? How String Variables are declared in C-Sharp.
In C#, you can use strings as array of characters, However, more common
practice is to use the string keyword to declare a string variable. The string
keyword is an alias for the System. String class
Question# 15
1. what is class?
Question# 16
Question# 18 Explore the differences between .Net Framework 2.0, .Net Framework 2.5, .Net
Framework 3.0, .Net Framework 4.0 and .Net Framework 4.5.
Question# 19 what are Collection? Define ArrayList? What are various methods available for
ArrayList in C#.
Question# 20 How many programming languages are supported in .Net framework. List down
any 10 programming languages supported by .Net Framework
a. ToolBox Window
b. Solution Explorer
c. Property Windows
d. Output Window
e. Error List
f. Server Explorer
Question# 22 what is Visual Programming? List down any five Visual Programming Languages
visual programming language (VPL) is any programming language that lets users
create programs by manipulating program elements graphically rather than by
specifying them textually.
Question# 23 List down ten control names from ToolBox and their important properties from
Question# 25 why the following controls are used? Define important properties of each of the
following controls
a. ToolTip
b. ProgressBar
c. NumericUpDown
d. LinkLabel
e. Timer
f. Color Dialog
g. VScrollBar
h. HScrollBar
Question# 26 Why message box is used in C#? Display Aslamo Alaikum in the Message Box?
Question# 27 Why the Form1_Load() event is used? When it is called? Which type of code is
usually given in the Form_Load() event
Question# 29 Design a NotePad application in C# windows form, with the basic functionality of
Notepad that comes with Microsoft Windows
Question# 30 Why web browser control from ToolBox is used? Discuss its important properties
and Events?
Question# 31Differentitate between ListBox and ComboBox Controls. Write down their
important properties and Events.
Question# 33 Differentiate between CheckBox and RadioButton Controls. Write down their
important properties and Events.
Question# 34 why the following C# controls are used, discuss their properties
a. Panel
b. FlowLayoutPanel
c. GroupBox
d. SplitPanel
e. TabControl
f. TableLayoutPanel
a. Delegates in C#
b. Interfaces in C#
c. Enum in C#
d. Stacks and Queue Collections in C#
e. Locking of Controls on Form1 Control
f. Which control is used for creating Menus in C#
g. Why MDI Parent form is used
g. Write the Connection of a Database EShopping (suppose this database is on your own
PC)
h. Why we use the following Controls in Window Applications. Define each control and
1. Button Control
2. Textbox Control
3. Label Control
4. Picture Box
6. Data Gridview
7. CheckBox
8. Masked Textbox
9. Numeric Updown
10. ToolTip
2. Know which Radio button has been clicked from a list of three Radio buttons
j. How to open FORM2 when you click the button on FORM1. Write the syntax to open a
a. Display all the names of the students which starts with letter S
b. Count all those names in the array which contains Khan in their name
c. Display all those Student Names which are having Rehman in their names
d. Find how many words are there in each name of the student
e. returnArrayItemsSum() ------------------To find and return the sum of Array Contents which
are Odd indexed
Overload the constructors in the above class. Finally, instantiate the class in Main () and
test the newly created class.
Question# 3 Design a windows form which input First Name and Last name in two text
boxes and then full name should be displayed in third text box
Q# 4 Design the following simple Calculator in C# and write the code against each of the
buttons
Q# 5 Design the following form using ListBox, TextBox , Label and a Button. When you press
the Add Country Name Button then the Country Name user entered in the TexBox must be
added to the ListBox as shown. It must also be checked that non-empty country name should be
added and the name should be repeated as well.
Q# 6 Design the following form using ComboBox, TextBox , Label and a Button. When you
press the Add Country Name Button then the Country Name user entered in the TexBox must be
added to the ListBox as shown. It must also be checked that non-empty country name should be
added and the name should be repeated as well.
Q# 7 Differentiate between ListBox and ComboBox
Q# 8 Design the following form using Radio Buttons, TextBox , Label and a Button. When you
press the Show Details Button then the User Name user entered in the TexBox must be displayed
in Message Box with the Gender selected……………… Ensure at a time only Male or Female
option is available.
Q# 9 Design the following form using CheckBoxes, TextBox , Label and a Button. When you
press the Show Details Button then the User Name user entered in the TexBox must be displayed
in Message Box with the hobbies selected by the user………………
Q# 10 Design the following form using DateTimePicker, TextBox , Label and a Button. When
you press the Age (In Years Months and Days) Button then age is displayed in the Textboxes
in Years Months and Days
Q# 13 Design a form Such that it look like this and perform the Calculator Operations according
This is a sample scientific calculator. Code the form and copied all the code in word file.
Q# 14 Design a form as shown here and perform the String Operations as labelled on each
Buttons
You can user TextBox1 or TextBox2 Separately or combined where needed. The result of String
Operation should be displayed in TextBox3. E.g. in the output, user has entered the Saif Ur
Rehman Text in textbox1 and then he has pressed the Length button. So, operation performed
behind Length button was to count the Total Characters in the TextBox1 and result has been
displayed in TextBox3. Similarly, perform String Operation according to each button labelled in
Status us Bit) )
a. If user provide no Search Criteria, i.e. if all fields left empty and user click the Search
b. If user enter just Name then your Query Where Clause should be executed for Name
c. When user enter From Date and To Date value, then all Customers should be filled in
d. You have to ensure that To Date is greater than the From Date
Q# 16 Design the Login form and Authenticate the user using Stored Procedure, if User exists in
database then show Message in MessageBox that you have been logged in to System
successfully.
Status us Bit) )
in database.
Then design a Form, to add following controls to it.
a. TextBox
b. Labels
3. Fill the data Grid view placed on Form using SELECT statement
Finally, code behind the SAVE, Update, Delete, Search buttons on the C# window form to call
You are required to write the code which tells how much records are there in Dataset
m. Explain MessageBox in C#. How you will know which Button has been clicked in
MessageBox
n. Write one line code to find the length of the Text Entered in a TextBox named txtCNIC
o. Write one line code to check whether TextBox named txtCNIC has text or it is empty
Q# 20 Your University want to manage student records, and you need to save these records in
database. You have a database named “StudentManagementSystem”, following attributes of a
student must be stored in database. (StudentId, StudentName, FatherName, DateOfBirth,
Address).
Q# 21 Write a code to create Rich Text Editor using filing I/O Your application support txt, doc
files and open these files in your editor after that these files save in dynamic location using
different dialog box. Your application is able to cut copy bold functions if you open new editor
all data will be removed
Q # 22 In UIIT Online Job Portals applied many candidates and these records are save in
Database, Using Layered Programming and Stored Procedures Write a code only show those
records those have BSCS degrees, after that more filtration filter those records thy CGPA above
2.50and status is “Not Verified” these records show in another Data grid view
Q# 23 UIIT online admission form for New students apply online. Here following create new
user account form. The form is designed in Windows application you are not write any code
accordingly design
(A)
1) Write code when combo box is open get
data from Database .and bind this data in
combo box
2) At a time only one radio button box
selected. When cheek any radio button first
radio button unchecked
3) To Handle Server Side Validation Insert
data in Database using Stored Procedures
(B)
1) When data inserted conformation message
show “DATA INSERTED”, if click reset the
all field empty
www.aspuiit.blogspot.com