Mock Interview Test
1. What is the time complexity of binary search?
A. O(n)
B. O(n log n)
C. O(log n)
D. O(1)
2. Which of the following is a non-primitive data type in JavaScript?
A. String
B. Boolean
C. Object
D. Number
3. What is the output of the following Python code?
print(2 ** 3)
A. 5
B. 6
C. 8
D. 9
4. What does SQL stand for?
A. Structured Query Language
B. Standard Query Language
C. Simple Query Language
D. Sequential Query Language
5. Which of the following is a popular version control system?
A. SVN
B. CVS
C. Git
D. Mercurial
6. What does the acronym REST stand for in web services?
A. Representational State Transfer
B. Relational State Transfer
C. Remote State Transfer
D. Real-time State Transfer
7. Which of the following is a NoSQL database?
A. PostgreSQL
B. MySQL
C. MongoDB
D. SQLite
8. In which programming language is the Django framework written?
A. Ruby
B. Python
C. Java
D. PHP
9. Which of the following is a front-end framework?
A. Django
B. Flask
C. React
D. Spring
10. What is the main purpose of the
alt
attribute in an
<img>
tag?
A. To provide an alternative text description
B. To change the image source
C. To specify image dimensions
D. To create a link to another page
11. What is the purpose of the
z-index
CSS property?
A. To control the opacity of an element
B. To manage the stacking order of elements
C. To define the size of an element
D. To set the position of an element
12. Which of the following is NOT a JavaScript data type?
A. Undefined
B. Number
C. Character
D. String
13. What does HTML stand for?
A. Hyper Text Markup Language
B. Hyperlinks and Text Markup Language
C. High-Level Text Markup Language
D. None of the above
14. In CSS, which of the following is used to select elements with a specific class?
A. .className
B. #className
C. *className
D. <className>
15. Which of the following is a correct way to comment in JavaScript?
A. <!-- comment -->
B. // comment
C. # comment
D. /* comment */
Submit
Go Back