You are on page 1of 13

M1:L1-Enrichment Activity

Name: Score: Year and Section:

Professor: CARLO MALIZON

Identifythefollowing:

1.Acategoryofprogramminglanguagewhereinstructionsarewrittenin0’sand1’s.

2.Itisasetofgrammaticalrulesforinstructinga
computeroranycomputingdevicetoperformspecific tasks.

3. These are programs that are utilized by a particular programming


language to translate instructions written either in low-level language or
high-level language.

4.Itisasetof interrelated programs.

5. It translates program written in high-level language into machine


language one statement/command at a time.

6.Acategoryof programminglanguagethatisusedbyprimitivemachines.

7. Itisaprogramminglanguagethatfollows,in order,asetofcommands.

8.Itisthefastesttranslator programs.

9.Itis
acategoryofprogramminglanguagewhereinstructionsarewritteninmnemoniccodes/symbols.

10.Examplesofthisprogramminglanguageare C++,Java,VB.NET,etc

Answers..

1. Machine Language

2. Programming Language

3. Translator Program

4. Software/System/Application

5. Interpreter

6. Machine Language

7. Procedural language

8. Assembler
9. Low-level language

10. Object-Oriented programming language


M1:L2-Enrichment Activity

Name: Score:

Section: Professor:

MatchingType.MatchColumnAwiththecorrectansweronColumnB,writeonlytheletterofansweront
heblankprovided.

ColumnA ColumnB

1. It is the result of the development process


a.DennisRichie

thatstartedwithan older language called BCPL.


2.HedevelopedBCPL. b. Loader

3. Thisprogram executionphaseis wherean c.Compiling


objectcodeisproduced by compiler that contains holes.
4.Hedeveloped Clanguage. d.MartinRichards
5.Thisprogramexecutionphaseexecutesbeforeaprogramis e.C
compiled.
6.ThefirstOperatingSystemattemptedtodevelopedinC. f.KenThompson
7.Hedeveloped B language. g.Edit

8.ThisprogramexecutionphasetranslatestheCprograminto h.Preprocess
machine language code.
9.Ittakestheexecutableimagefromdiscandtransferitto memory. i.Compiling
10. This program execution phase j.Linking
allowstheprogrammertotypethe programwithaneditorprogram.

Answers:
1. E
2. D
3. J
4. A
5. H
6. C
7. F
8. I
9. B
10.G
M1:L3-Enrichment Activity

Name: Score:

Section: Professor:

Applyingthestructureandexampleprovidedinthislesson.Writeasimpleprogramthatdisplaysyour“R
EGINA”onyour screen.
M1:L4-Enrichment Activity:

Name Score:

Section: Professor:

Discuss in your own words the basic elements of C program.

→A C program is a structured set of instructions with various


elements, each playing a crucial role in its functionality. Its main
function is the entry point for execution, containing instructions
that determine the program's behavior. Data types, operators,
control structures, functions, and input/output functions are
essential for decision-making and repetition. The standard library
in C offers predefined functions, which can be included at the
program's outset with #include. Proper syntax, such as semicolons
(;) and curly braces {}, is crucial for a C program's functionality. In
summary, a C program is a versatile and widely used
programming language.
M1:L5-Enrichment Activity

Name: Score:

Section: Professor:

Identify what is being required by the following task:

1. Write an input statements that will allow the user to store integer value to num variable.

a. int num;

2. Writedifferentinputstatementsthat willallowtheusertostorecharacter valuetochvariable.

a. char a[20];
b. char b;
3. Writeanoutputstatement forthenumber1 task.
4. Write different output statements for the number 2 task.
a.

b.
M1:L6-Enrichment Activity

Name: Score:

Section: Professor:

I. Provideonthespaceprovided theformatspecifiersorstringof thefollowingdatatype:

a. Integer- numbers except decimal ones

b. Signed integer- both positive and negative numbers


c. Character- letter or words
d. Float- BIG decimal numbers bigger than double

e. Double- decimal numbers

II. Enumerate the following:

1. What are the classification of data types:


a. Primary data type
b. Derived data type
c. User Defined Data Type

2. What are the keywords for primitive data types:


a. d char
b. int
c. double
d. float
M1:L7-Enrichment Activity

Name Score:

Section: Professor:

IdentifyifitisV-valid orI–invalidnameofvariables.

V 1.MyName
I 2.Firstnumber
V 3.void
I 4.num*1
V 5.2ndnumber
I 6.sum;
V 7.HaveAGreatDay
V 8.NAME
I 9._sample
I 10.Number-1
M1:L8-Enrichment Activity

Provide examples of the use of different operators:

1. arithmetic/mathematical operators

2. increment and decrement operators

3. assignment operators
4. relational operators

5. logical operators

6. bit wise operator ?

7. comma
8. size of operators.
M1:L9-Enrichment Activity

Name: Score:

Section: Professor:

I. Solve the following expressions:


1) 10*2+3-(6%2+9)

FALSE

2) 6%3%4+9+3/10/5

FALSE

3) 6>=5&& 10==10

TRUE

4) !(!(3<4||5>=2)&&8>1)

TRUE

II. Programming.

Writeaprogramthatwillinputtwointegersand determinetheproductof thetwo integers.

You might also like