Save
SC1003
programming language
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
aiya
Visit profile
Cards (40)
Programming language
• a
medium
through which programmer may give
instructions
to a computer
What are the two ways of translating high-level language program code to machine-language instructions?
Interpretation
and
compilation.
View source
What is programming?
Implementing a representation of the
solution
for the computer to
execute.
Encoding an
algorithm
using a programming language.
Involves
sequential
processing,
decision-making
, and
iteration.
View source
What must a programming language support to implement
algorithms?
Control-constructs and data-
types.
View source
What is machine-language?
A language specific to the type of computer
processor
, consisting of
binary
instructions.
View source
Why is it error-prone to code directly in machine-language?
Because it consists of
'0'
and
'1'
binary format, which is
difficult
for humans to manage.
View source
What is the purpose of high-level programming languages?
To provide
abstraction
from the internal operating details of the computer.
View source
What are examples of high-level programming languages?
C
,
Java
,
Python.
View source
What are the two approaches for program translation?
Interpretation
Compilation
View source
How does the interpretation approach work?
It uses an
interpreter
that reads and
translates
one
high-level
code statement at a time.
View source
Name three programming languages that use the interpretation approach.
Python
,
R
, and
JavaScript.
View source
How does the compilation approach work?
It uses a compiler to
read
and
translate
the entire high-level language program into machine-language
instructions.
View source
What are examples of programming languages that use the compilation approach?
C and C++
View source
What is unique about Java's translation technique?
Java uses a combination of both
interpretation
and
compilation
techniques.
View source
Compare the advantages and disadvantages of interpreters and compilers.
Interpreter:
Portable
across different platforms.
Produces results almost
immediately.
Easy to
debug.
Executes more
slowly.
Compiler:
Runs very
fast
after compilation.
Smaller
code size after compilation.
Must compile the
entire
program before execution.
Needs
recompilation
for different platforms.
View source
What was C language originally developed for?
To help implement the
Unix
operating system.
View source
What is a key feature of C language?
It allows for
direct
access
and
manipulation
of the underlying computer's
hardware.
View source
What are some applications suitable for C language?
Embedded
systems
development,
operating
systems implementations, and device
drivers.
View source
What is C++ an extension of?
C
language.
View source
What programming paradigm does C++ support?
Object-Oriented
Programming (OOP).
View source
What is the focus of programming in OOP?
On how objects
interact
with one another.
View source
What are some applications suitable for C++ language?
Video
games,
GUI-based
applications, and
operating
systems design.
View source
What is Python known for?
Being a relatively
easy-to-learn
programming language.
View source
What type of applications is Python targeted for?
General
purpose programming for applications that do not need direct access to the computer's
hardware.
View source
How does the Python interpreter work?
It converts and executes Python program statements
one-by-one
to machine instructions.
View source
What are some applications suitable for Python language?
Data science and web development.
View source
What is Java known for?
Being a highly portable, general-purpose
language
with Object-Oriented
support.
View source
How does Java achieve portability?
By running as an
interpreted
language on a Java
Virtual
Machine (JVM).
View source
What is the process of Java program execution?
The
source
code is compiled to Java
bytecode
, which is then interpreted by the
JVM.
View source
What are some applications suitable for Java language?
Mobile apps for Android phones and
game
development.
View source
What is a webpage?
A
text
document transferred over the
internet.
Displayed in a
web
browser (e.g., Chrome, Safari).
View source
What language is commonly used to describe the content of a webpage?
HTML
(Hypertext Markup Language).
View source
How can a webpage be made dynamic and interactive?
By adding
scripts
in languages such as
JavaScript.
View source
What is PHP used for?
To
dynamically
generate
HTML webpages before they are sent to the browser.
View source
What are the applications of R language?
Used for
statistical
computing and data analysis.
Provides extensive
graphic
plotting functions.
Useful for developing
science
and engineering
computation
applications.
View source
What are the applications of MATLAB language?
Used primarily for
numerical
computing.
Supports
functions
and
libraries
for matrix
manipulation
,
plotting
, and data
visualization.
Applications include
audio
,
video
, and
image
signal processing.
View source
What are the two levels of programming languages?
Low-level
machine-language executed directly by the computer.
High-level
programming language that needs translation to machine-language for execution.
View source
What are the two ways of translating programming languages?
Interpreter:
translates and executes statements one-by-one.
Compiler:
translates the entire program before execution.
View source
What are examples of compiled and interpreted languages?
Compiled languages:
C
, C++.
Interpreted languages:
Python,
JavaScript,
R.
Combination:
Java.
View source
What is the significance of different programming languages?
Each language provides different
features.
Suitable for different
requirements
and applications.
View source