0% found this document useful (0 votes)
31 views9 pages

Comprog1 - SLK Q1 5

Uploaded by

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

Comprog1 - SLK Q1 5

Uploaded by

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

SHS

GRADE
11

COMPUTER PROGRAMMING .NET 1


QUARTER 1- MODULE 5

PERFORM COMPUTER OPERATIONS

Name: _______________________________________________________________________

Grade Level & Section: __________________________________________________________

Subject Teacher: _______________________________________________________________


OBJECTIVES:

After this lesson, you will be able to answer the following questions:
• What is a Computer Programming?
• What is a Computer Programmer?
• What is an IDE and syntax?
• What is Debugging?

PRE-TEST

Direction: Multiple choices. Encircle the letter of the correct answer.

1. It is essentially a list of instructions that can be run by a certain program.


A) COMPUTER PROGRAMMING
B) SYNTAX
C) COMPUTER CODE
D) IDE
2. It enables programmers to consolidate the different aspects of writing a computer program.
A) COMPUTER PROGRAMMING
B) SYNTAX
C) COMPUTER CODE
D) IDE
3. It is the set of rules that define what the various combinations of symbols mean.
A) COMPUTER PROGRAMMING
B) SYNTAX
C) COMPUTER CODE
D) IDE
4. It is a way of giving computers instructions about what they should do next.
A) COMPUTER PROGRAMMING
B) SYNTAX
C) ANTIVIRUS
D) IDE
5. They write and test codes that allows computer applications and programs to function.
A) COMPUTER PROGRAMMING
B) COMPUTER PROGRAMMER
C) COMPUTER CODE
D) COMPUTER SOFTWARE

1
LESSON PROPER

What is computer programming?


Computer programming is a way of giving computers
instructions about what they should do next. These
instructions are known as code, and computer
programmers write code to solve problems or
perform a task.

What Does a Computer Programmer Do?


Computer programmers write and test code that
allows computer applications and programs to
function. They may translate designs from software
developers and engineers into workable code. They may also update or expand the code of
existing programs or test programs for errors, finding and resolving faulty lines of code.
Programmers use an integrated development environment for formatting code, checking syntax,
and testing programs. Learn about some of the specific tools used by programmers, such as
syntax highlighting, autocompletion, and debugging.
How do they write the Code?
Computer code is essentially a list of instructions that can be run by a certain program. Most code
consists of plain-text documents so they can be used for many different programs. A unique file
extension is given to the document to indicate the nature of the code. For example, a file created
using Python is saved with a .py extension, like 'myprogram.py.' However, the actual content of
the file is still just plain text.
Because most code is in plain text,
you can write code using a basic word
processor or text editor. However, it is
much more effective to use a software
application that is specifically
designed for coding in a language.
For example, when you write a
document in plain English, you would
use word processor software, which
can assist you with things such as
formatting, spelling, and grammar.
Similarly, a code editor provides tools
such as syntax checking. Syntax is to
code what spelling, and grammar are
to writing English.

2
A code editor is also called an integrated development environment, or IDE. An IDE is a
software application for formatting your code, checking syntax, as well as running and testing your
code. Some IDEs can work with multiple programming languages, while some are very specific for
only one language.

WHAT IS AN IDE?
An IDE, or Integrated Development
Environment, enables programmers
to consolidate the different aspects of
writing a computer program.
IDEs increase programmer
productivity by combining common
activities of writing software into a
single application: editing source
code, building executables, and
debugging.

Here are some examples of IDE.


❖ Eclipse: Supports C, C++, Python, Perl, PHP, Java, Ruby and more.
❖ NetBeans: Supports Java, JavaScript, PHP, Python, Ruby, C, C++
❖ Visual Studio: Supports Visual C++, VB.NET, C# F# and others. Visual
Studio is Microsoft's IDE and is designed to create applications for the
Microsoft platform.
❖ Komodo IDE: Supports Perl, Python, Tcl, PHP, Ruby, JavaScript.
❖ Aptana: Supports HTML, CSS, JavaScript, AJAX. This is a popular choice
for web app development.
❖ Geany: Supports C, Java, PHP, HTML, Python, Perl, Pascal.

What is Syntax in Programming?


Syntax is the set of rules that define what the various
combinations of symbols mean. This tells the computer
how to read the code. Syntax refers to a concept in
writing code dealing with a very specific set of words
and a very specific order to those words when we give
the computer instructions. This order and this strict
structure are what enables us to communicate
effectively with a computer. Syntax is to code, like
grammar is to English or any other language. A big
difference though is that computers are really exacting
in how we structure that grammar or our syntax.

3
This syntax is why we call programming coding. Even amongst all the different languages that are
out there. Each programming language uses different words in a different structure in how we give
it information to get the computer to follow our instructions. In this regard coding incorrect syntax
will give you errors.

Common Errors in Programming.


Dealing with errors is an integral part of any web development process, to the point where
seasoned coders eventually become experts at navigating and fixing the bugs they create.

The most encountered programming errors are:

➢ Runtime errors
These bugs occur when the code “won’t play nice” with
another computer, even if it worked perfectly fine on the
developer’s own computer. These errors are especially
frustrating because they directly impact the end user
and make the application appear unreliable or even
completely broken.

➢ Logic errors
These errors can be extremely frustrating to deal with
because nothing is inherently wrong with the code: the
developer just did not program the computer to do the
correct thing. In fact, a logic error caused by
miscalculations between American and English units
caused NASA to lose a spacecraft in 1999.

➢ Compilation errors
Compilation is the process of converting a high-level coding language into a lower-level language
that can be better understood by the computer. Compilation errors occur when the compiler is not
able to properly transform the high-level code into the lower-level one. This prevents the software
from being launched or tested.

➢ Syntax errors
Computer languages have their own specialized grammar rules. When these rules are not
followed (for example, the developer omits the parentheses while writing code), a syntax error
prevents the application from running.

4
➢ Resource errors
Sometimes, a program can force the computer it is running on to attempt to allocate more
resources (processor power, random access memory, disk space, etc.) than it has. This results in
the program becoming bugged or even causes the entire system to crash.

➢ Arithmetic errors
These errors are just like logic errors, but with mathematics. For example, a division equation may
require the computer to divide by zero. Since this is mathematically impossible, it results in an
error that prevents the software from working correctly.

What is Debug or Debugging


Debugging is the process of detecting and removing of
existing and potential errors (also called as ‘bugs’) in a
software code that can cause it to behave unexpectedly
or crash. It is methodically handled by software
programmers via debugging tools.

Why do we need Debugging?


The process of debugging begins as soon as the code
of the software is written. Then, it continues in
successive stages as code is combined with other units
of programming to form a software product. Debugging
has many benefits such as:

❖ It reports an error condition immediately. This allows earlier detection of an error and makes
the process of software development stress-free and unproblematic.
❖ It also provides maximum useful information of data structures and allows easy
interpretation.
❖ Debugging assists the developer in reducing useless and distracting information.
❖ Through debugging the developer can avoid complex one-use testing code to save time
and energy in software development.

REFERENCES:

https://www.learnacademy.org/common-programming-errors/
https://edu.gcfglobal.org/en/basic-computer-skills/understanding-file-extensions/1/
https://www.tutorialspoint.com/computer_fundamentals/computer_software.htm

5
ACTIVITIES

Directions: Read the given questions below and answer each item by expressing your own
ideas in 2 – 3 sentences per item.

Describe Syntax in your own words.

1. _____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

___________________________________________________________________________.
Is debugging Important? Why?

2. _____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________

_____________________________________________________________________________
ASSESSMENT A
.

Directions: Encircle the correct answer.


1. They write codes for the computer to perform a task.
A) Computer software
B) Computer codes
C) Computer Programmers
D) Computer Programming

6
2. It enables programmers to consolidate the different aspects of writing a computer program.
A) IDE
B) Syntax
C) Code
D) Hardware
3. This tells the computer how to read the code.
A. IDE
B. Syntax
C. Code
D. Hardware
4. What IDE stands for?
A) Internet Development Environment
B) Internet Device Environment
C) Integrated Development Environment
D) Industry Development Environment
5. It is essentially a list of instructions that can be run by a certain program.
A) Computer hardware
B) Computer codes
C) Computer Programmers
D) Computer Programming
6. They also update or expand the code of existing programs or test programs for errors.
A) Computer hardware
B) Computer codes
C) Computer Programmers
D) Computer Programming
7. It is also called as code editor.
A) IDE
B) Syntax
C) Code
D) Hardware
8. It refers to a concept in writing codes and dealing with a very specific set of words and a
very specific order to those words when writing computer instructions.
A) IDE
B) Syntax
C) Code
D) Hardware

7
9. It is a software application for formatting your code, checking syntax, as well as running and
testing your code.
A) IDE
B) Syntax
C) Code
D) Hardware
10. It is the process of detecting and removing of existing and potential errors.
A) Debugging
B) Syntax
C) Code
D) Hardware

ASSESSMENT B

Directions: Write True is the statement is correct and False if it is not. Write your answer on the
given spaces.

________ 1. Typing the correct syntax will result into a syntax error.

________ 2. A unique file extension is given to the document to indicate the nature of the code.

________ 3. Codes can be used for many different programs.

________ 4. You can use IDE for coding.

________ 5. Typing the correct syntax will not give a logical error.

________ 6. A Resource error occurs when the resources are missing.

________ 7. Compilation error occurs when the compiler is not able to properly transform the

high-level code into the lower-level one.

________ 8. You can use IDE for Debugging.

________ 9. Arithmetic errors are the result of wrong mathematical equations or formulas.

_______ 10. Syntax error occurs when you type the correct syntax.
8

You might also like