1.
Name an example of a high-level language.
Correct Answer
C. Java
Explanation
Java is an example of a high-level language because it is a programming language that is designed to be easily understood and written by humans. High-level languages like Java are more abstract and user-friendly compared to low-level languages like machine code or assembly language, which are closer to the computer's hardware. Java allows developers to write code using English-like syntax and provides a range of built-in functions and libraries, making it easier to develop complex software applications.
2.
What is a binary Language?
Correct Answer
A. A language made of 1's and 0's
Explanation
A binary language is a language that is made up of only two symbols, 1's and 0's. These symbols represent the binary digits, also known as bits, which are the fundamental building blocks of digital data. In binary language, each 1 or 0 represents a single unit of information, such as a binary digit or a binary code. This language is commonly used in computer systems and digital communication to represent and manipulate data.
3.
What is the definition of a variable?
Correct Answer
A. Variables store data for the program to work with. A variable could contain text or numerical values.
Explanation
The definition of a variable is that it stores data for the program to work with, and it can contain either text or numerical values. This means that variables are used to hold and manipulate information within a program.
4.
What's the difference between high level and low-level languages?
Correct Answer
D. Low level languages is made of 1's and 0's and high level language is BASIC, COBOL, FORTRAN, C++, etc.
Explanation
The correct answer explains that low level languages are made of 1's and 0's, which refers to machine language or binary code that is directly understood by the computer hardware. On the other hand, high level languages like BASIC, COBOL, FORTRAN, C++, etc. are more user-friendly and easier to understand and write for humans. They are then translated into low level languages by software or compilers for the computer to execute.
5.
What is machine language?
Correct Answer
B. Machine language is made of 1's and 0's.
Explanation
Machine language is a low-level programming language that consists of binary code, represented by 1's and 0's. It is the only language that a computer can directly understand and execute. Each instruction and data in a computer's memory is represented by a specific combination of 1's and 0's, allowing the computer to perform tasks and operations. This binary code is the fundamental language used by computers to process and execute instructions.
6.
Low-level languages can be divided into four categories.
Correct Answer
B. False
Explanation
The statement is incorrect. Low-level languages can be divided into two categories, not four. The two categories are machine language and assembly language. Machine language consists of binary code that can be directly executed by the computer's hardware, while assembly language uses mnemonic codes to represent machine instructions. Therefore, the correct answer is false.
7.
Which two categories can low-level language be divided into?
Correct Answer(s)
A. Assembly language
C. Machine language
Explanation
Low-level language can be divided into two categories: assembly language and machine language. Assembly language is a low-level programming language that uses mnemonic codes to represent machine instructions. It is specific to a particular computer architecture and provides a more readable and understandable representation of machine code. Machine language, on the other hand, is the lowest-level programming language that directly corresponds to the instructions executed by a computer's hardware. It consists of binary code that is specific to the computer's architecture and is not easily readable by humans.
8.
Assembly language is machine dependent.
Correct Answer
A. True
Explanation
Assembly language is a low-level programming language that is specific to a particular computer architecture. It uses mnemonic codes and symbols to represent machine instructions, making it easier for humans to understand and write code. However, since assembly language instructions directly correspond to machine instructions, it is inherently machine dependent. This means that programs written in assembly language can only run on the specific type of computer or processor for which they were written. Therefore, the statement "assembly language is machine dependent" is true.
9.
What are some examples of high-level languages?
Correct Answer
E. All of these
Explanation
The correct answer is "all of these" because all the mentioned programming languages - BASIC, COBOL, FORTRAN, and C++ - are considered high-level languages. High-level languages are designed to be easily understood by humans and are closer to natural language than machine language. They provide a higher level of abstraction and are more user-friendly, allowing programmers to write code that is easier to read, write, and maintain. Therefore, all the mentioned languages are examples of high-level languages.
10.
A computer language is not a programming language.
Correct Answer
B. False
Explanation
The statement "a computer language is not a programming language" is false. A computer language and a programming language are essentially the same thing. Both terms refer to a set of rules and instructions used to communicate with a computer and write programs. Therefore, the correct answer is false.