Save
Computer Science
logic and languages
Save
Share
Learn
Content
Leaderboard
Learn
Created by
nils
Visit profile
Cards (178)
What is the purpose of an
Integrated Development Environment
(
IDE
)?
To develop programs using various tools and features
What are some common tools included in an IDE?
Editors, error diagnostics, and run-time environment
What is a simple text editor mentioned in the study material?
Notepad
What are the two main types of
programming languages
discussed?
Low-level languages
and
high-level languages
What is the purpose of
translators
in programming?
To convert
high-level languages
into
machine code
What is a compiler?
A program that translates a high-level language into machine code
What is an
interpreter
?
A program that translates high-level language into
machine code
line by line
Name five high-level programming languages.
Python
Visual Basic
C#
Java
C++
What are examples of
low-level programming languages
?
Assembly language
Machine code
When were
computers
first invented?
In the
1940s
What does a typical instruction in
machine code
look like?
It is written in
binary
, such as 101011001001
What is the main
disadvantage
of writing programs in
machine code
?
It is difficult and time-consuming
What are the characteristics of assembly language?
Easier to write than machine code
Each instruction maps directly to machine code
Processor-specific
What does the instruction "LOAD 3" do in assembly language?
It loads the value in memory location 3
Why is assembly language considered a low-level language?
Because it must be translated into machine code before execution
What is a key feature of
high-level programming languages
?
They have
statements
that resemble English or mathematics
What is the relationship between high-level languages and machine code?
One high-level instruction usually translates into several machine code instructions
What are the advantages of high-level languages?
Easier to learn
Faster program writing
Easier to understand and debug
Why are
low-level languages
still used by some programmers?
They can write more efficient code for
specific
hardware
What is the difference between a compiler and an interpreter?
Compiler: Translates the whole program at once
Interpreter: Translates and executes one line at a time
What happens when a compiled program is executed?
It runs faster because it is already in machine code
What is
bytecode
in relation to
Java
?
It is an intermediate stage that can be interpreted on different processors
What are the characteristics of low-level languages?
Direct control over hardware
Memory-efficient
Code is harder to write and understand
What are the characteristics of
high-level languages
?
Easier to write and understand
Utilizes commands similar to English
Can run on different types of
processors
What is the significance of the
opcode
in
machine code
?
It specifies the
operation
to be performed
What is the role of the
operand
in
machine code
?
It provides the data or address to be used
What is the output of the following
Python
code if corrected: "print(
userName
)"?
It prints the
list
of
unsorted
names
What are the advantages of
low-level languages
?
Direct control over
hardware
Faster execution
Less
RAM
usage
What is the
output
of the
print statement
in line 4 of the
bubble sort
code?
It prints the list of
unsorted names
What is the purpose of the HALT instruction in assembly language?
It stops the program from running
What is the significance of the
statement
"area = (base * height) / 2" in high-level languages?
It calculates the area of a
triangle
What is the role of the
assembler
in programming?
It translates
assembly language
into
machine code
What is the difference between
RISC
and
CISC
assembly languages?
They refer to different architectures of
processors
What is the purpose of the
object code
produced by a
compiler
?
It can be saved and run whenever required
What happens if an
interpreter
encounters a syntax
error
?
It stops and displays an
error message
Why might customers prefer interpreters over compilers?
They can see and adapt the source code
What is the significance of the statement "The interpreter must be installed to run the program"?
It indicates that the interpreter is necessary for executing interpreted code
What does the term "
machine independent
" refer to in high-level languages?
It means the code can run on different types of
processors
What is the significance of the statement "Code is quicker and easier to understand and write" in relation to high-level languages?
It highlights the user-friendly nature of high-level programming
What is the role of the
source code
in programming?
It is the code written by the
programmer
before translation
See all 178 cards