



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




โ What is a pixel? Answer: A tiny picture element, or dot, that forms part of an image on the screen. โ What is a software program? Answer: A set of instructions that tells a computer what to do. โ What is a programming language? Answer: A language used to write instructions that communicate with a computer. โ What are the 3 categories of programming languages? Answer: Machine language, assembly language, and high-level language. โ What is machine language? Answer: A set of primitive computer instructions written in binary code using 0s and 1s.
โ What is assembly language? Answer: A programming language that uses symbolic instructions and must be translated into machine code by an assembler. โ What is a high-level language? Answer: An English-like programming language that is easier for humans to learn and use. โ Give examples of high-level programming languages. Answer: COBOL, FORTRAN, BASIC, Pascal, Ada, C, Visual Basic, Delphi, C++, C#, and Java. โ What is source code? Answer: A program written by a programmer in a high-level programming language. โ What is a compiler? Answer: A program that translates source code into machine language or object code. โ What is an object program? Answer: The machine-language program produced by a compiler.
Answer: Traditional: fruit and knives are kept separately. OOP: each fruit is grouped with the correct knife, meaning data and operations are kept together. โ What car example explains traditional programming vs. OOP? Answer: Manual transmission represents the traditional approach because the driver changes gears. Automatic transmission represents OOP because the gear-changing operation is built into the car. โ What is Java bytecode? Answer: The special object code created when Java source code is compiled. โ What is the Java Virtual Machine (JVM)? Answer: Software that interprets and runs Java bytecode. โ What is the Java execution process? Answer: Java Source Code โ Compiler โ Bytecode โ JVM โ Computer. โ What are the 3 types of Java comments? Answer: Line comments, paragraph comments, and javadoc comments.
โ How do you write a Java line comment? Answer: // comment โ How do you write a Java paragraph comment? Answer: /* comment / โ How do you write a javadoc comment? Answer: /* comment */ โ What is the purpose of javadoc? Answer: To document classes, data, and methods and to generate HTML documentation using the javadoc command. โ What is a Java reserved word? Answer: A keyword with a special meaning to the compiler that cannot be used for another purpose. โ Give examples of Java reserved words. Answer: class, public, static, and void. โ What is a Java modifier?