Unit 1 Flashcards
What is a programming language?
A system of communication used to instruct a computer to perform specific tasks.
What is a low-level programming language?
Languages that provide little abstraction from a computer’s instruction set architecture.
What is machine code?
The lowest level of code, consisting of binary strings specific to hardware instructions.
What is assembly language?
A low-level programming language that uses human-readable opcodes instead of binary.
True or False: Assembly language is portable across different hardware.
False
What are high-level programming languages primarily designed for?
To bridge the gap between human abstraction and machine-level operations.
List some examples of programming languages.
- Fortran (1956)
- COBOL (1960)
- BASIC (1964)
- Pascal (1971)
- C (1972)
- C++ (1979)
- Java (1995)
What is the main feature of the C programming language?
Allowed flexible system-level programming without extensive use of assembly.
What does ‘write once, compile anywhere’ refer to?
The ability of C to be compiled on any platform without modification.
What is Java originally known as?
Oak
What were the original use cases for Java?
Interactive television set-top boxes.
What are the goals of Java?
- Simple
- Robust and secure
- Portable and platform-neutral
- Concurrent and event-driven
What is the Java Virtual Machine (JVM)?
A specification for a target computer that interprets bytecode.
What does the Java Development Kit (JDK) include?
- Java Runtime Environment (JRE)
- Compiler (javac)
- Debugger (jdb)
- Documentation generator (javadoc)
What is the latest Long-Term Support (LTS) version of Java as of September 2023?
Java 21
What is OpenJDK?
The reference implementation of Java, which is free and open-source.
What was the first killer app of Java?
The World Wide Web (WWW)
What is a key difference between Java and C++?
Java is fully object-oriented while C++ allows both procedural and object-oriented paradigms.
Fill in the blank: Java has _______ inheritance only.
single
What does Java lack in terms of memory management?
Direct memory access
True or False: Java allows operator overloading.
False
What is the primary advantage of Java’s garbage collection?
Automatic memory management
What is the main architectural feature of the Java Virtual Machine?
32-bit stack architecture
What is a significant characteristic of Java’s class structure?
One outer class per source file