1. : Which of the following is the correct file extension for Python files?
(A) .jav
(B) .cpp
(C) .py
(D) .js
2. : In Java, which keyword is used to define a class?
(A) object
(B) def
(C) class
(D) new
3. : Which operator is used in C++ to access members of a class through a pointer?
(arrow operator)’)”> (A) . (dot operator)
(arrow operator)” onclick=”checkAnswer(‘q3’, ‘-> (arrow operator)’)”> (B) -> (arrow operator)
(arrow operator)’)”> (C) :: (scope resolution)
(arrow operator)’)”> (D) # (hash)
4. : In JavaScript, which keyword is used to declare a variable that cannot be reassigned?
(A) var
(B) let
(C) const
(D) static
5. : Which function in Python is used to display output on the screen?
(A) echo()
(B) print()
(C) display()
(D) output()
6. : In Java, which method is the entry point of every program?
(A) start()
(B) run()
(C) main()
(D) init()
7. : Which of the following is NOT a feature of C++?
(A) Object-Oriented Programming
(B) Platform Independence like Java
(C) Low-level memory manipulation
(D) Operator Overloading
8. : Which symbol is used for single-line comments in JavaScript?
” onclick=”checkAnswer(‘q8’, ‘//’)”> (A)
(B) //
(C) #
(D) /* */
9. : In Python, what is the output of len("Hello")?
(A) 4
(B) 5
(C) 6
(D) Error
10. : Which of the following is true about Java?
(A) It is compiled only
(B) It is interpreted only
(C) It uses both compilation and interpretation
(D) It does not require compilation