[go: up one dir, main page]

0% found this document useful (0 votes)
15 views3 pages

Assignment no1CPE02

The document is an assignment for a computer programming course, outlining questions related to programming concepts, logic formulation, programming language structures, compilation and execution processes, and the evolution of programming languages. It also distinguishes between procedural and object-oriented programming, and factors influencing the choice of programming languages. The assignment requires students to provide detailed answers and cite sources to avoid plagiarism.

Uploaded by

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

Assignment no1CPE02

The document is an assignment for a computer programming course, outlining questions related to programming concepts, logic formulation, programming language structures, compilation and execution processes, and the evolution of programming languages. It also distinguishes between procedural and object-oriented programming, and factors influencing the choice of programming languages. The assignment requires students to provide detailed answers and cite sources to avoid plagiarism.

Uploaded by

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

ASSIGNMEN

T NO. 1 CPE02: COMPUTER PROGRAMMING


Professor: Dr. Jennis Articona

NAME: GELASQUE, RENALD MARTIN A. DATE: JANUARY 24 2025

SECTION CODE: CEIT–04–203P SCORE: ______________________________

Instructions: Answer the following questions in the space provided after each item adjust the
space if necessary. Cite your sources and avoid plagiarism. Save your response as
Assignment1_SRURNAME. Turn in your work on or before the due date ends. A hard copy of
this template will be submitted in the next face-to-face meeting.

1. Define what is Programming.

- Programming is, quite literally, all around us. From the take-out we order, to the movies
we stream, code enables everyday actions in our lives. Tech companies are no longer
recognizable as just software companies — instead, they bring food to our door, help us get a
taxi, influence outcomes in presidential elections, or act as a personal trainer.

2. Discuss how Program Logic is formulated

- Problem Analysis

•Understand the problem •Define requirements

-Algorithm Design

•Step-by-step instructions •Pseudocode or flowcharts -Decision Structures •If/else


statements •Loops -Data Structures •Choosing data types and structures

-Modularization

•Breaking down into functions or methods •Encapsulation -Error Handling •Edge cases
and exceptions •Validations

-Optimization

-Testing and Refinement

•Unit testing •Integration testing

3. Describe what are the structures governing the design and implementation of modern
programming languages.
ASSIGNMEN
T NO. 1 CPE02: COMPUTER PROGRAMMING
Professor: Dr. Jennis Articona

- Structured programming, or modular programming, is a programming paradigm that


facilitates the creation of programs with readable code and reusable components. All modern
programming languages support structured programming, but the mechanisms of support --
like the syntax of the programming languages vary.

4. Explain how different programs are compiled and executed.

- Generally coding is done in high level language or low level language (assembly language).
For the computer to understand these languages, they must be translated into machine level
language. The translation process is carried out by a compiler/interpreter (for high level
language) or an assembler (for assembly language program). The machine language code thus
created can be saved and run immediately or later on. In an interpreted program, each
program statement is converted into machine code before program is executed. The execution
occurs immediately one statement at a time sequentially. BASIC is one of the frequently used
interpreted language. In contrast to interpreter, a compiler converts a given source code into
object code. Once an object code is obtained, the compiled programs can be faster and more
efficient than interpreted programs.

5. Distinguish the different features of 1st, 2nd, 3rd, 4th, 5th and 6th generation programming
languages.

- Programming languages have evolved significantly over time, moving from fundamental
machine-specific code to complex languages that are simpler to write and understand. Each
new generation of programming languages has improved, allowing developers to create more
efficient, human-readable, and adaptable software. The transition from the first low-level
languages to current, high-level languages offered new tools and ideas that continue to
influence how we write software today.

6. Differentiate the characteristics of Procedure-Oriented Programming and Object-Oriented


Programming Languages.

- Procedural Programming (POP) breaks tasks into step-by-step functions, while Object-
Oriented Programming (OOP) builds with objects that hold data and actions. If you are
building a house, you may place every brick one at a time with a thorough design.
ASSIGNMEN
T NO. 1 CPE02: COMPUTER PROGRAMMING
Professor: Dr. Jennis Articona

7. Describe what are the factors of programming languages logic by developer.

- There are many factors that influence the choice of programming languages, the main
factors are cost, organization policy, availability, reliability, suitability and expandability. All
these factors should be considered when choosing a programming language.

REFERENCES: (https://www.codecademy.com/), (https://www.techtarget.com/),


(https://www.codesansar.com/), (https://www.geeksforgeeks.org/generation-programming-
languages/), (https://youtu.be/ifo76VyrBYo?si=WrlkjQ4NjQrO2cQu)

You might also like