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

Bsc Cs Mcq Answers

Uploaded by

joballinone
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)
23 views3 pages

Bsc Cs Mcq Answers

Uploaded by

joballinone
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

B.

Sc Computer Science MCQs with Answers

1. Which of the following is a valid C variable name? Answer: B) variable_name

2. What is the size of an `int` data type in C (on a 32-bit system)? Answer: B) 4 bytes

3. Which operator is used to access the value at the address stored in a pointer variable? Answer:

B) *

4. What is the output of the following code: int a = 5; printf("%d", a++); Answer: A) 5

5. Which function is used to read a string from the user in C? Answer: B) gets()

6. Which data structure uses the FIFO (First In First Out) principle? Answer: B) Queue

7. What is the time complexity of searching an element in a binary search tree (average case)?

Answer: B) O(log n)

8. Which traversal method is used to get the contents of a binary search tree in ascending order?

Answer: B) In-order

9. In a circular queue, the condition for queue full is: Answer: B) (rear + 1) % size == front

10. Which data structure is used in recursion? Answer: B) Stack

11. Which of the following is a valid SQL statement to retrieve all records from a table named

'Students'? Answer: A) SELECT * FROM Students;

12. In relational databases, a primary key: Answer: B) Must be unique

13. Which normal form eliminates transitive dependency? Answer: C) Third Normal Form

14. Which SQL clause is used to filter records? Answer: A) WHERE

15. Which command is used to remove all records from a table in SQL? Answer: D) TRUNCATE

16. Which of the following is not a function of the operating system? Answer: C) Compiler design

17. What is a deadlock? Answer: B) A condition where processes wait indefinitely for resources

18. Which scheduling algorithm gives minimum average waiting time? Answer: B) Shortest Job Next

19. Which of the following is a non-preemptive scheduling algorithm? Answer: C) First-Come,

First-Served
20. Which memory allocation technique suffers from external fragmentation? Answer: C) Contiguous

allocation

21. Which model is also known as the classic life cycle model? Answer: C) Waterfall model

22. Which of the following is not a software development activity? Answer: D) Networking

23. What is the main aim of software testing? Answer: C) Quality assurance

24. Which document defines the user's needs and expectations? Answer: B) SRS

25. What is the first step in the software development life cycle (SDLC)? Answer: C) Requirement

gathering

26. Which topology requires a central controller? Answer: B) Star

27. Which layer of the OSI model provides end-to-end communication? Answer: A) Transport

28. IP address 192.168.0.1 belongs to which class? Answer: C) C

29. Which device connects two different networks? Answer: C) Router

30. HTTP operates at which layer of the OSI model? Answer: A) Application

31. HTML stands for: Answer: B) Hyper Text Markup Language

32. Which HTML tag is used for inserting an image? Answer: A) <img>

33. CSS stands for: Answer: B) Cascading Style Sheet

34. Which of the following is used to link an external CSS file? Answer: B) <link rel="stylesheet"

href="style.css">

35. JavaScript is a: Answer: B) Interpreted language

36. Who is considered the father of AI? Answer: B) John McCarthy

37. What is the main goal of AI? Answer: C) Enable machines to mimic human behavior

38. Which of these is a common language used in AI? Answer: B) Python

39. Which term is used for the ability of a machine to improve its performance by learning from

experience? Answer: C) Machine Learning

40. Which algorithm is used in pathfinding problems like in maps or games? Answer: D) All of the

above
41. Who invented the World Wide Web? Answer: C) Tim Berners-Lee

42. Which part of the computer is responsible for processing data? Answer: B) CPU

43. Which file extension is used for a C++ program? Answer: B) .cpp

44. What is the binary equivalent of decimal 10? Answer: B) 1010

45. Which number system is used by computers? Answer: C) Binary

46. Which of the following is volatile memory? Answer: C) RAM

47. Which key is used to refresh a webpage? Answer: B) F5

48. Which of the following is a system software? Answer: C) Windows OS

49. Which protocol is used to transfer web pages? Answer: B) HTTP

50. The brain of the computer is: Answer: B) CPU

You might also like