LESSON 6: INTRODUCTION TO PROGRAMMING Flashcards

1
Q

referred to as computer
programming and involves various activities or tasks like examination, accepting, discerning, and disentangling problems. It can be defined as “a way of developing and executing numerous sets of commands to let a computer implement different tasks.”

A

Programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

the process of
multiple people working together on the same
codebase.

A

The Collaborate on existing code-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

an Integrated Development Environment (IDE) that allows users to write programs in a variety of languages, including C#.
It’s designed to manage and develop large .NET

A

The Visual Studio without any code-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Visual Basic Demonstration

A

-You must select the New Project option in order to begin
constructing your initial application. The New Project
dialog box that follows will show up once you click on the
new project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Visual Basic Demonstration

A
  • There are five different project types available to you in the
    dialog box. We’ll choose Windows Forms Application since we’ll be learning how to construct Windows applications.
  • You can modify the default project name Windows Application 1 at the bottom of this dialog box to any other name you choose, such as my First Program. Once you’ve
    made your name modification, click OK to proceed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Visual Basic Demonstration

A
  • To close the Properties window, click the Close button on
    the title bar. To open the window, select Properties
  • Window from the menu bar after selecting View.
  • Click the tab of the Team Explorer window in your IDE, and
    then click the Close button located on its toolbar.
  • Within the Solution Explorer window, click the Auto Hide
    (vertical pushpin) button. After being minimized, the Solution Explorer window shows up as a tab on the IDE’s edge.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Visual Basic Demonstration

A
  • Move your mouse pointer over the Solution Explorer tab to bring up the Solution Explorer window momentarily. The window for Solution Explorer opens. You’ll see that the Auto Hide button is no longer a vertical pushpin but a
    horizontal one.
  • Remove the Solution Explorer window using the mouse pointer.
  • The window shrinks and re emerges as a tab.
  • Close the Data Sources window by yourself.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Visual Basic Demonstration

A
  • A control can be inserted into a form by dragging and
    dropping it from the toolbox. You can alter it to suit your
    requirements.
  • You can adjust its size and position, for instance. Let’s
    look at some instances when the Button, Label, Textbox,
    List Box, and Picture Box were used. As you move on to
    other lessons, we will go over the program syntaxes, so
    you don’t need to worry too much about the code at this
    time. The common controls Toolbox will open when you
    select the Toolbox tab.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Visual Basic Property Windows
The attributes are called__________are listed in the Properties window. When an
object is created, a default value is
assigned to each of its properties.

A

properties

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Visual Basic Splash Screen Application

A
  • A SplashScreen can be added by clicking on Project Add
    Windows Form then selecting Splash Screen from the
    template. The SplashScreen must be configured within the
    properties of the application. To get the properties, click
    Project “The Application’s Name” Properties. Make sure the
  • Application Tab is clicked on and click Assembly Information.
  • To activate the SplashScreen go to the Application Tab within
    Properties and select the SplashScreen under Splash screen.
  • To change how long the SplashScreen is shown click on View
    Application Events within the Application Tab of the
    Properties.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Visual Basic Project “Write Code”

A
  • User actions trigger events in
    Visual Basic project.
  • Basic code for specific events
    automatically executes
    procedures.
  • VB ignores events without
    written procedures.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Visual Basic Procedures
“Write Code”

A
  • Each procedure is a sub
    procedure, starting with Private
    Sub and ending with End Sub.
  • The form’s class name matches
    the file’s name.
  • Visual Basic automatically
    names event procedures,
    including the object name,
    underscore (), and event name.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Visual Basic Procedures “Write Code”
These methods are also referred to as

A

event-handling
methods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Visual Basic Code Statements
“Write Code”
- are for project documentation only, not executable.
- Aim is to make the project more readable and understandable.

A

Remark statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  • Remarks are not actual code but explanatory text that helps you and others understand
    your program.
  • The compiler ignores remarks during program execution.
A

Remark statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Single-line comment: Start the line with an apostrophe (‘).
EXMAPLE: (VB.Net)
‘ This line calculates the area of a circle

A

Adding Remarks

17
Q

Multi-line comment: Enclose the comment within double apostrophes (‘’).
EXAMPLE: (VB.Ne)t
‘’ This is a multi-line comment explaining a code block
‘’ Useful for complex logic

A

Adding Remarks

18
Q
  • These statements assign values or expressions to variables.
  • They create a link between a variable name and the data it holds. - Operate from right to left.
  • Value on right side of equal sign assigned to property on left.
  • Equal sign often read as “is replaced by.
A

Assignment Statements

19
Q

Opening a Projects “Write Code”

A

*Select Open Project from the Visual Studio File menu and browse
to find your file.
* Choose the project from the Start Page.
* Choose the project from the Files/Recent Projects menu item.

20
Q

Saving a Projects “Write Code”

A
  • Choose “Save All” from the File menu to save current form, project, and solution files.
  • Select the project name and location.
  • Press “Browse” to select a different location.
  • Clear the “Create directory for solution” checkbox to create a new
    folder.
  • Click “Save” after setting the name,
    location, and clearing the checkbox.
21
Q

Running the Projects “Write Code”
After you have finished writing the code, you are ready to run the project. Use one of these three techniques:

A
  • Open the Debug menu and choose Start Debugging.
  • Press the Start Debugging button on the toolbar. to select a different location.
  • Clear the “Create directory for solution”
    checkbox to create a new folder.
  • Click “Save” after setting the name, location, and clearing the checkbox.
  • Press F5, the shortcut key for the Start Debugging command.