stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Programming Paradigms - SDD HSC Flashcards | StudBud
Explore
/
Programming Paradigms - SDD HSC
Programming Paradigms - SDD HSC
30 terms
·
StudBud Administration
·
32 plays
Year 12 HSC :)
Flashcards
30 cards
F
Practice quiz
P
Host live
L
Questions
30
Answers
1
Procedural programming is...
Grouped imperative statements in code blocks
Combining input, output, data, control & processing
Implementing facts and rules into source code
Creating inferences and deductions in source code
2
Which of these is
not
a feature of OOP?
Abstraction
Instantiation
Control
Encapsulation
3
What is inheritance? :>)
When an operation behaves funnily
yeehaw
Ability to use a class without knowing the code inside it
Sharing of attributes among related classes
4
Quick question!
Which paradigm is most likely to be used for artificial intelligence? (AI)
Imperative
Functional
Logic
Functional
5
FAST QUESTION -
Building blocks of functional paradigms are:
the answer's pretty obvious
Objects
Functions
this aint it chief
6
A heuristic is ___________________
A rule of thumb
A commonly used routine
A circuit in the hardware
A decision based on knowledge
7
In OOP, data is organised into discrete, distinguishable entities called
objects
True
False
8
In OOP, input, output, processing and control is separated
True
False
9
Which paradigm is based on facts and rules? :)))))
Logic
Imperative
Functional
Procedural
10
Paradigms are philosophical or theoretical frameworks
True
False
11
Prolog is an example of a _______ language. (hint: look at the name!)
Procedural
Logical
Object-oriented
Functional
12
Encapsulation
establishes a ________ between the user of an object and the code implementing it.
Integrated Development Environment
Intimate relationship
Firewall
Interface
13
Sans is writing a piece of code that is based on previously known facts and knowledge. Which paradigm is best?
Logic
Object oriented
Functional
Imperative
14
The imperative paradigm focuses on ______________.
(don't know what to put in this box tbh)
What to do, rather than how to do it
How to do it, the sequence of steps
Functions to return and pass values
15
An
expert system
is capable of:
Perform functions from an existing knowledge base, that an expert can do.
Develop solutions based on concrete knowledge such as program behaviour
Learning new things from the existing knowledge base, that a brain can do.
ρΦΩζφΩψωλΘωξτδφ
16
Which paradigm is based on variables and control structures?
Imperative
Logic
Pack of cards
Object oriented
17
Polymorphism is creating an instance of an object
False
True
18
The processing unit of logical programming languages is called.....?
Knowledge Base
Central Processing Unit
Inference Engine
Arithmetic Unit
19
Objects contain attributes. Attributes contain __________
Possible solutions for queries.
The data known by an object.
Self-contained units of data.
20
I am a
query
that can result in either a "Yes" or a "No". What am I?
Query (IQ 50000)
Argument
Goal
Inquiry
21
Arthavalus is testing a theory and started by assuming the theory is true. What strategy is he most likely using?
Goal fulfilment
Sequential Decision
Backward Chaining
Forward Chaining
22
The inference engine is...........?
A program that converts statements into high-level language
Storage that is used to hold data for a relatively short time
A software that controls system resources such as the CPU
The control mechanism that applies knowledge to resolve goals
23
The most common computer architecture is:
Karl Marx
Alan Turing
Neil Armstrong
Von Neumann
24
Backward chaining: Start with __________ to determine ________.
Facts and Rules, Goal/Query
Goal/Query, Facts and Rules
25
Imperative languages use _________ and _________ to solve problems.
Data and methods
Variables and control structures
Facts and rules
Classes and objects
26
Computers were initially designed to solve mathematical and arithmetic problems
True
False
27
What is
not
a programming language capable of OOP?
ALGOL
C++
Fortran
Python
28
Polymorphism
is when a programmer can create a ___________________.
Network that may operate heuristically
Method that can be performed at any time with different data
Procedure that can process natural language
Representation of knowledge within a system that adapts to situations
29
Which of these is
not
an actual paradigm?
Imperative
Assembly
Functional
Logical
30
Classes and objects are characteristic to which paradigm?
Logic Paradigm
Object Paradigm (OP)
Functional Paradigm
Object-oriented Paradigm (OOP)