Basics
Question 1 |
Which of the following is false regarding the evaluation of computer programming languages ?
Application oriented features | |
Efficiency and Readability
| |
Software development | |
Hardware maintenance cost |
Question 1 Explanation:
Evaluation of computer programming languages are mainly two types.
1.External Evaluation: Rapid development, Easy maintenance, Reliability and safety, Portability, Efficiency, Low training time (learnability), Reusability and Pedagogical value
2.Internal Evaluation: Readability, Writability, Simplicity, Orthogonality, Consistency, Expressiveness and Abstraction
1.External Evaluation: Rapid development, Easy maintenance, Reliability and safety, Portability, Efficiency, Low training time (learnability), Reusability and Pedagogical value
2.Internal Evaluation: Readability, Writability, Simplicity, Orthogonality, Consistency, Expressiveness and Abstraction
Question 2 |
Consider the rectangle with vertices (0,0),(0,2),(3,0),(3,2).There is a scaling of 2 towards the x-axis and 3 towards the y-axis. The new coordinates of the rectangle are
(0,0)(6,0)(0,4)(6,4)
| |
(0,0)(6,0)(0,4)(3,2)
| |
(0,0)(6,0)(0,6)(6,6)
| |
(0,0)(4,0)(0,6)(4,6) |
Question 2 Explanation:
To scale a rectangle by a factor of 2 along the x-axis and 3 along the y-axis, you can apply the scaling factor to each vertex individually. The scaling operation multiplies the x-coordinate by 2 and the y-coordinate by 3 for each vertex.
Given the original vertices of the rectangle:
(0, 0)
(0, 2)
(3, 0)
(3, 2)
After scaling, the new coordinates are:
(0 * 2, 0 * 3) = (0, 0)
(0 * 2, 2 * 3) = (0, 6)
(3 * 2, 0 * 3) = (6, 0)
(3 * 2, 2 * 3) = (6, 6)
So, the correct new coordinates of the rectangle after scaling are:
(0, 0) (0, 6) (6, 0) (6, 6)
The option that matches these coordinates is:
(0, 0) (0, 6) (6, 0) (6, 6)
Question 3 |
Bug means
A logical error in a program | |
A difficult syntax error in a program | |
Documenting programs using an efficient documentation tool | |
All of the above |
Question 3 Explanation:
A bug is an error in a software program. It may cause a program to unexpectedly quit or behave in an unintended manner. For example, a small bug may cause a button within a program's interface not to respond when you click it. A more serious bug may cause the program to hang or crash due to an infinite calculation or memory leak.
There are 3 questions to complete.
