A+ Answers



QUESTION 1

 Describe what is an array? Provide examples and uses of arrays in VB & C# languages.
QUESTION 2

Explain how will you to derive New Classes from Base Classes?
Provide examples and uses in VB & C# languages.
QUESTION 3

Explain local and class scope. Provide examples and uses in VB & C# languages.
QUESTION 4

Describe classes, including constructors, methods, data, value, and reference types. Provide examples and uses in VB & C# languages.
QUESTION 5

What is the result of the following code?

1 Dim y As Integer
2 Dim x As Integer
3 Dim mysteryValue As Integer
4
5 x = 1
6 mysteryValue = 0
7
8Do
9 y = x ^ 2
10 displayListBox.Items.Add(y)
11 mysteryValue += 1
12 x += 1
13 Loop While x <= 10
14
15 resultLabel.Text = mysteryValue

QUESTION 6

 Find the error(s) in the following code. This is the definition for a Click event
    handler for a Button. This event handler should draw a rectangle on a
    PictureBox control.

1 Private Sub drawImageButton_Click(sender As System.Object,
2 e As System.EventArgs) Handles drawImageButton.Click
3
4 ' create an orange colored brush
5 Dim brush As New SolidBrush(Orange)
6
7' create a Graphics object to draw on the PictureBox
8 Dim graphicsObject As Graphics = mainPicture.AcquireGraphics()
9
10 ' draw a filled rectangle
11 graphicsObject.FillRectangle(brush, 2, 3, 40, 30)
12 End Sub ' drawImageButton_Click
QUESTION 7

List and describe with examples the design principles of Graphical User Interfaces (GUIs).
QUESTION 8

Compare and Contrast the concepts of Inheritance and polymorphism in Visual Basic and C#. 
Your response should be detailed along with code examples from both language.  
QUESTION 9

The most difficult part in learning computer programming is problem solving. Look back at your learned knowledge and problem solving/programming experiences in this class. Now describe your thought processes while engaged in problem solving and computer programming using C#. Provide detailed examples.
QUESTION 10

Describe a 2- dimensional array. Provide examples and uses of arrays in VB & C# languages.
QUESTION 11

List and describe at least two kinds of control statements? Provide examples and uses in VB & C# languages.
QUESTION 12

List and describe real-life applications you can imagine/develop for your personal needs, at your work or any other practical use. Provide examples and uses in VB & C# languages.

QUESTION 13

Describe in details with plenty of examples on what you have learned while using Visual Basic & Visual C# 2012 Debugger. Provide examples and uses in VB & C# languages.
QUESTION 14

Describe in details with several examples about Graphical User Interfaces and their uses in real-life situations. Provide examples and uses in VB & C# languages.