Programming Quiz questions
|
Q11- Which is a powerful feature of OOP that leads to information hiding? |
A) Encapsulation | B) Polymorphism |
C) Inheritance | D) None of these |
Ans:- Encapsulation |
|
Q12- __________ is the strength of the relationships between modules or functions. |
A) Dependence | B) Cohesion |
C) Coupling | D) Subjection |
Ans:- Coupling |
|
Q13- Which of the following instruction steps, would be written within the diamond-shaped box, of a flowchart? |
A) A=B-A | B) Print A |
C) Input B | D) IF B greater than A |
Ans:- IF B greater than A |
|
Q14- A set of instructions that directs a computer's hardware to perform a task is called. |
A) Storage | B) Memory |
C) Logic | D) Program |
Ans:- Program |
|
Q15- In LISP, the Multipication 3 * 2 is entered as. |
A) 3 x 2 | B) 3 MUL 2 |
C) (* 3 2) | D) 3 *2 = |
Ans:- (* 3 2) |
|
Q16- Which of the following languages is more suited to a structured program? |
A) FORTRAN | B) PASCAL |
C) BASIC | D) None of the above |
Ans:- PASCAL |
|
Q17- In Python, Methods having two prefix and suffix underscores in the method name is known as? |
A) Dunder methods | B) Magic methods |
C) Both A and B | D) None of these |
Ans:- Both A and B |
|
Q18- How many types of loops in python? |
A) Only one | B) Two |
C) Three | D) Four |
Ans:- Two |
|
Q19- What is the ASCII code of capital F? |
A) 100 | B) 95 |
C) 70 | D) 75 |
Ans:- 70 |
|
Q20- What is the best client side scripting language? |
A) ParaScript | B) JavaScript |
C) DataScript | D) None of these |
Ans:- JavaScript |
|