Comprog1 - SLK Q1 5
Comprog1 - SLK Q1 5
GRADE
11
Name: _______________________________________________________________________
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
1
LESSON PROPER
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.
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.
➢ 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.
❖ 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.
1. _____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
___________________________________________________________________________.
Is debugging Important? Why?
2. _____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
_____________________________________________________________________________
ASSESSMENT A
.
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.
________ 5. Typing the correct syntax will not give a logical error.
________ 7. Compilation error occurs when the compiler is not able to properly transform the
________ 9. Arithmetic errors are the result of wrong mathematical equations or formulas.
_______ 10. Syntax error occurs when you type the correct syntax.
8