1.
Name an example of high level language
Correct Answer
C. Java
Explanation
Java is an example of a high-level language because it is designed to be easily understood by humans and provides a level of abstraction from the underlying hardware. High-level languages like Java allow programmers to write code that is more readable and closer to natural language, making it easier to develop complex applications. Java is widely used for web and mobile app development, and its syntax and features make it a popular choice for many developers.
2.
What is Binary Languge?
Correct Answer
A. A language made of 1's and 0's
Explanation
Binary language is a language that is made up of 1's and 0's. In this language, each digit represents a bit, which can be either on (1) or off (0). It is the fundamental language used by computers to communicate and process information. The binary system is based on the concept of representing numbers and characters using only two digits, 1 and 0, which can be easily interpreted by electronic circuits. Therefore, a binary language consists of combinations of these two digits to represent different instructions, data, and operations in a computer.
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 correct answer is "Variables store data for the program to work with. A variable could contain text or numerical values." This is because variables are used to store and manipulate data in a program. They can hold different types of data, such as text or numerical values, and allow the program to perform operations and make decisions based on the stored data.
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 is that low level languages are made of 1's and 0's, while high level languages are represented by programming languages such as BASIC, COBOL, FORTRAN, C++, etc. This explanation highlights the fundamental difference between low level and high level languages, where low level languages are closer to the machine code and use binary representation, while high level languages are more user-friendly and use programming languages that are easier for humans to understand and write.
5.
What is machine language?
Correct Answer
B. Machine language is made of 1's and 0's.
Explanation
Machine language is the lowest-level programming language understood by computers. It consists of binary digits, specifically 1's and 0's, which represent instructions and data that the computer can execute. Each instruction in machine language is represented by a specific sequence of 1's and 0's, allowing the computer to understand and execute the desired operations. This language is directly executed by the computer's hardware and is not easily readable or writable by humans. Therefore, the correct answer is that machine language is made of 1's and 0's.
6.
Low level languages can be divided into four categories
Correct Answer
B. 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. Machine language, on the other hand, is the lowest level of programming language that directly communicates with the computer's hardware. It consists of binary code that the computer's processor can understand and execute. Both assembly language and machine language provide a level of control and efficiency that higher level languages like BASIC and COBOL do not offer.
8.
Assembly language is machine dependent
Correct Answer
A. True
Explanation
Assembly language is machine dependent because it is specific to a particular computer architecture or processor. It uses mnemonic codes and symbols to represent the machine instructions and memory locations, which are then translated into machine code by an assembler. Since different processors have different instruction sets and memory organizations, assembly language programs written for one processor may not be compatible with another. Therefore, assembly language is considered machine dependent as it relies on the specific characteristics and features of a particular machine or processor.
9.
What are some examples of high level languages?
Correct Answer
E. All of these
Explanation
The correct answer is "all of these" because BASIC, COBOL, FORTRAN, and C++ are all examples of high-level programming languages. High-level languages are designed to be easily understood and written by humans, allowing programmers to focus on problem-solving rather than machine-specific details. These languages provide a higher level of abstraction and are closer to human language, making them more user-friendly and efficient for software development.
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 syntax used to communicate instructions to a computer. Therefore, it is incorrect to say that a computer language is not a programming language.
11.
The following is the first tag of a form:
Correct Answer
B. The Form tag
Explanation
The correct answer is the Form tag. The Form tag is the first tag of a form and is used to create an HTML form for user input. It is used to group and organize various form elements such as input fields, checkboxes, radio buttons, etc. The Form tag is essential for handling form submission and sending data to a server for processing.
12.
Which of the following is an acceptable action in the form tag?
ExplanationThe correct answer is action="mailto:
[email protected]". This is an acceptable action in the form tag because it specifies that the form data should be sent via email to the specified email address. The "mailto:" protocol is used to indicate that the form data should be sent as an email. The email address provided in this case is "
[email protected]".
13.
The following method is used when an infinite amount of data is entered in the form:
Correct Answer
C. Post
Explanation
The "post" method is used when an infinite amount of data is entered in the form. This method is commonly used when submitting large amounts of data to a server, as it allows for the transmission of unlimited data. In contrast, the "get" method is limited in the amount of data it can transmit. The "textarea" element is a form element that allows users to input multiple lines of text.
14.
The following method is used when there is LIMITED data sent in the form:
Correct Answer
D. Get
Explanation
The "get" method is used when there is limited data sent in the form. This method appends the form data to the URL in the form of query parameters. It is commonly used for simple and short requests, such as retrieving data or performing searches. In contrast, the "post" method is used when there is a larger amount of data sent in the form, and it sends the data in the body of the HTTP request.
15.
The following tag is used to define a checkbox:
Correct Answer
B. Input type="checkbox" name="top1" value="roni"
Explanation
The correct answer is "input type='checkbox' name='top1' value='roni'". This is because the "input" tag is used to define an input element in an HTML form, and the "type" attribute specifies the type of input element. In this case, the "type" attribute is set to "checkbox", indicating that it is a checkbox input. The "name" attribute is used to give the input element a name, which in this case is "top1". The "value" attribute is used to specify the value that is sent to the server when the checkbox is checked. In this case, the value is set to "roni".
16.
Which of the following statements is TRUE about radio buttons:
Correct Answer
D. All the names must be the same.
Explanation
Radio buttons are a type of input element in HTML that allow users to select only one option from a list. In order for the radio buttons to function correctly, all of them should have the same name attribute. This ensures that when one radio button is selected, the others are automatically deselected. Therefore, the statement "All the names must be the same" is true.
17.
Which of the following tags are used to define a drop down list:
Correct Answer
A. Select and option
Explanation
The correct answer is "select and option". The select tag is used to create a drop-down list, while the option tag is used to define the individual options within the list. Together, they allow users to select one option from a list of choices.
18.
The following attributes may be added to the input type = 'text" name = "favorite" tag:
Correct Answer
A. Maxlength=50 size=40 value="enter data here"
Explanation
The correct answer is "maxlength=50 size=40 value="enter data here"". This is because the "maxlength" attribute specifies the maximum number of characters that can be entered in the input field, the "size" attribute sets the visible width of the input field, and the "value" attribute sets the initial value of the input field to "enter data here".
19.
The following tag is used to send the data in the form to the recipient:
Correct Answer
C. Input type="submit" name="submit" value="submit"
Explanation
The correct answer is "input type="submit" name="submit" value="submit"". This is because the input type "submit" is specifically designed to be used in forms to send data to the recipient. The name attribute is used to identify the input element, and the value attribute specifies the text that will be displayed on the button.
20.
The following tag is used to clear out the selected choices and restart the form:
Correct Answer
C. Input type="reset" name="reset" value="reset"
Explanation
The correct answer is "input type='reset' name='reset' value='reset'". This is because the input type="reset" creates a button that, when clicked, resets all the form fields to their default values. The name attribute is used to identify the button, and the value attribute specifies the text that appears on the button.