0% found this document useful (0 votes)
57 views3 pages

Core Subject MCQ

MCQ TEST
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views3 pages

Core Subject MCQ

MCQ TEST
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

BrowserStack MCQ Prep

1. Computer Networks (CN)


Q1. Which of the following protocols is used for secure communication over the internet?
● a) HTTP
● b) FTP
● c) HTTPS
● d) SMTP
Q2. In which layer of the OSI model does the TCP protocol operate?
● a) Application
● b) Transport
● c) Network
● d) Data Link
Q3. Which of the following is a valid IP address?
● a) 192.168.0.256
● b) 255.255.255.0
● c) 172.16.300.5
● d) 500.500.500.500
2. Operating Systems (OS)
Q4. Which scheduling algorithm is non-preemptive?
● a) Round Robin
● b) Shortest Job Next (SJN)
● c) Priority Scheduling
● d) Multilevel Queue
Q5. A page fault occurs when:
● a) A page is present in memory
● b) A page is not present in memory
● c) A page is corrupt
● d) None of the above
Q6. In the Unix operating system, which command is used to display the current processes?
● a) ps
● b) top
● c) ls
● d) chmod
3. Database Management System (DBMS)
Q7. What is a primary key in a database?
● a) A key that allows duplicate values
● b) A key that identifies each record uniquely
● c) A key that cannot be used for retrieval
● d) A key that must always be numeric
Q8. Which SQL statement is used to fetch data from a database?
● a) SELECT
● b) UPDATE
● c) DELETE
● d) INSERT
Q9. Which of the following is a non-relational database?
● a) MySQL
● b) MongoDB
● c) Oracle
● d) PostgreSQL
4. HTML, CSS, JavaScript (JS)
Q10. In HTML, which tag is used to create a hyperlink?
● a) <img>
● b) <a>
● c) <div>
● d) <link>
Q11. Which of the following is a valid CSS selector?
● a) #id
● b) .class
● c) element
● d) All of the above
Q12. Which of the following is not a JavaScript data type?
● a) String
● b) Boolean
● c) Integer
● d) Undefined
5. SQL
Q13. Which SQL clause is used to filter records?
● a) WHERE
● b) GROUP BY
● c) ORDER BY
● d) HAVING
Q14. How do you delete a record from a SQL table?
● a) DELETE FROM table_name
● b) REMOVE FROM table_name
● c) TRUNCATE table_name
● d) ERASE FROM table_name
6. C, C++
Q15. Which of the following is not a valid C data type?
● a) int
● b) float
● c) bool
● d) string
Q16. What is the output of the following C++ code?
cpp
#include<iostream>
using namespace std;
int main() {
int a = 5;
int b = 6;
cout << a + b;
return 0;
}

● a) 10
● b) 11
● c) 12
● d) 15
Q17. What is the correct syntax to allocate memory dynamically in C++?
● a) int *ptr = new int;
● b) int ptr = malloc(sizeof(int));
● c) int *ptr = allocate();
● d) int *ptr = create();
7. Data Structures and Algorithms (DSA)
Q18. Which of the following data structures uses LIFO order?
● a) Queue
● b) Stack
● c) Linked List
● d) Tree
Q19. The time complexity of binary search is:
● a) O(n)
● b) O(n²)
● c) O(log n)
● d) O(1)
Q20. Which of the following sorting algorithms has the worst-case time complexity of O(n log n)?
● a) Merge Sort
● b) Insertion Sort
● c) Bubble Sort
● d) Quick Sort

Answers:
1. c) HTTPS
2. b) Transport
3. b) 255.255.255.0
4. b) Shortest Job Next (SJN)
5. b) A page is not present in memory
6. a) ps
7. b) A key that identifies each record uniquely
8. a) SELECT
9. b) MongoDB
10. b) <a>
11. d) All of the above
12. c) Integer
13. a) WHERE
14. a) DELETE FROM table_name
15. d) string
16. b) 11
17. a) int *ptr = new int;
18. b) Stack
19. c) O(log n)
20. a) Merge Sort

You might also like