Save
Programming Languages
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Josma Gopi
Visit profile
Cards (49)
What are programming paradigms?
Different approaches to using
programming languages
View source
What are the two broad categories of programming paradigms?
Imperative
and
declarative
View source
What does the choice of programming paradigm depend on?
The type of
problem
that needs solving
View source
What does imperative programming specify?
Actions
to be performed clearly
View source
Why is procedural programming widely used?
It applies to many
problems
and is easy
View source
What is a characteristic of procedural programming?
Uses a sequence of
instructions
View source
How are instructions executed in procedural programming?
In a
step-by-step
manner
View source
What is object-oriented programming (OOP) focused on?
Reusable
components with similar characteristics
View source
What are the entities in OOP called?
Objects formed from
classes
View source
What do classes in OOP have?
Attributes
and methods
View source
What is the purpose of OOP?
To create reusable and maintainable
programs
View source
What is the focus of declarative programming?
Stating the
desired
result
View source
How does functional programming operate?
By reusing a set of
functions
View source
What do logic languages define in declarative programming?
A set of
facts
and
rules
View source
What is a key advantage of procedural programming?
Simple to
implement
for many problems
View source
What traditional data types do procedural languages use?
Integers
and
strings
View source
What are the four main programming structures in structured programming?
Sequence
,
selection
,
iteration
,
recursion
View source
How does sequence control flow work?
Code is
executed
line-by-line
View source
What does selection control flow use?
IF statements
for specific conditions
View source
What is iteration in programming?
Executing code a
certain
number of times
View source
What is recursion in programming?
Functions
expressed in terms of themselves
View source
What is assembly language?
Next level up from
machine code
View source
How is assembly language converted to machine code?
Using an
assembler
View source
What makes assembly language easier to use than machine code?
It uses
mnemonics
instead of
binary
View source
What is the relationship between assembly language and the CPU?
Commands
are
processor-specific
View source
What does each mnemonic in assembly language represent?
A
numeric code
View source
What is the purpose of the opcode in machine code instructions?
Specifies
the
instruction
to be
performed
View source
What do addressing modes allow in machine code?
Access to more
data storage locations
View source
What is immediate addressing?
Operand is the actual value in
binary
View source
What is direct addressing?
Operand
gives the
address
holding the
value
View source
What is indirect addressing?
Operand gives address of a
register
holding another address
View source
What is indexed addressing?
Uses an
index register
to determine address
View source
What is a class in object-oriented programming?
A
template
for an object
View source
What defines the state of an object in OOP?
Attributes
that give properties
View source
What is the purpose of a constructor method in OOP?
To create a new
object
View source
What is encapsulation in OOP?
Protecting
attributes
from direct
access
View source
What is a setter in OOP?
A method that
sets
an attribute's value
View source
What is a getter in OOP?
A method that
retrieves
an attribute's value
View source
What is inheritance in OOP?
A
class
can inherit from another class
View source
What is polymorphism in OOP?
Objects behave differently based on their
class
View source
See all 49 cards