Monthly test for the month Feb 2026 Trade : COPA NCVT
Name: Rollno:
1. JavaScript is a ______ 8. What will typeof 5 15. Which method is
language. return? used to take input from
A) Programming A) string user?
B) Styling B) number A) alert()
C) Database C) boolean B) prompt()
D) Markup D) object C) confirm()
D) input()
2. Which symbol is used 9. Which keyword is used
for single-line comments for conditional 16. Which keyword is
in JavaScript? statements? used to define a function?
A) <!-- --> A) for A) func
B) // B) while B) function
C) # C) if C) def
D) ** D) switcher D) method
3. Which keyword is used 10. Which loop is used to 17. What is the correct
to declare a variable? repeat code? way to write an array?
A) var A) if A) var arr = (1,2,3);
B) int B) for B) var arr = [1,2,3];
C) string C) alert C) var arr = {1,2,3};
D) dim D) prompt D) var arr = <1,2,3>;
4. Which symbol is used 11. Which function prints 18. Which event occurs
to end a statement? output in console? when a user clicks an
A) . A) [Link]() element?
B) : B) print() A) onchange
C) ; C) write() B) onmouse
D) , D) display() C) onclick
D) onhover
5. How do you write 12. JavaScript code is
'Hello' in an alert box? written inside which 19. Which of the
A) alertBox('Hello'); HTML tag? following is NOT a
B) msg('Hello'); A) <style> JavaScript data type?
C) alert('Hello'); B) <script> A) Number
D) prompt('Hello'); C) <js> B) String
D) <javascript> C) Boolean
6. Which operator is used D) Float
for addition? 13. Which symbol is used
A) * for strict equality? 20. Which symbol is used
B) + A) == for multi-line comments?
C) - B) = A) // comment
D) / C) === B) <!-- -->
D) != C) /* comment */
7. Which of the following D) ## comment
is a correct variable 14. Which of the
name? following is a Boolean
A) 1name value?
B) @name A) 'true'
C) userName B) true
D) var C) 1
D) yes
Monthly test for the month Feb 2026 Trade : COPA NCVT
Name: Rollno:
Answer Key
1. A
2. B
3. A
4. C
5. C
6. B
7. C
8. B
9. C
10. B
11. A
12. B
13. C
14. B
15. B
16. B
17. B
18. C
19. D
20. C