Wk1 Content Flashcards
What is programming?
Writing instructions for a computer to perform tasks using a specified syntax programming language.
What is C++?
C++ is a popular, high-level programming language known for its control over system resources and memory, and portability across applications.
What is the role of input and output in programming?
Input refers to receiving data from external sources, while output involves sending data to external destinations.
What are fundamental concepts in programming?
Input, Output, Variables, and Control Structures.
How does Java’s object orientation compare to C++?
Java is strictly object-oriented, requiring everything to be in a class, whereas C++ supports both object-oriented and procedural programming.
What is the difference in platform dependence between Java and C++?
Java, running on the Java Virtual Machine, is platform-independent, while C++ offers more direct control over hardware and is platform-dependent.
Can C++ and Java be generic?
Yes, both C++ and Java can be used for generic programming.
How does Java use compilers and the JVM?
The Java compiler converts .java files into .class files (bytecode), which the JVM then interprets into native machine code.
What are compilers and linkers used for in programming?
They convert programming language into machine instructions; compilers convert the code, and linkers combine code files into a runnable program.
What is the frequency of new C++ version releases
New versions of C++ are planned to be released every three years.
What are the key differences in memory management between Java and C++?
Java automates memory management through garbage collection, whereas C++ requires manual management, including the use of memory pointers.
What are common uses of C++?
What are typical applications of Java?
Java is often used for client-server web-based applications.
C++ is mostly used for desktop applications, system-level programming, game coding, and building large, complex applications.
What programming paradigm does C++ primarily support?