MSP SCIENCE ART AND COMMERCE COLLEGE, MANORA
(Affiliated to Sant Gadge Baba Amravati University)
API CALLING PYTHON
Subject: Computer Science | Course: [Link] | Semester: II
Duration: 180 Minutes | Total Marks: 100
Instructions:
1. All questions are compulsory.
2. Each question carries equal marks.
3. Choose the correct option (A, B, C, or D) for each question.
Q1. Which of the following data structures is typically used to implement a LIFO (Last-In,
First-Out) behavior? (5 marks)
A) Queue
B) Stack
C) Linked List
D) Tree
Q2. What is the primary function of an operating system? (5 marks)
A) To write application programs
B) To manage hardware and software resources
C) To design computer circuits
D) To browse the internet
Q3. In object-oriented programming, what is the mechanism of basing an object or class
upon another object or class, retaining the same implementation? (5 marks)
A) Polymorphism
B) Encapsulation
C) Inheritance
D) Abstraction
Q4. Which sorting algorithm has an average-case time complexity of O(n log n)? (5 marks)
A) Bubble Sort
B) Insertion Sort
C) Quick Sort
D) Selection Sort
Q5. What does HTML stand for? (5 marks)
A) HyperText Markup Language
B) High-level Text Machine Language
C) Hyperlink and Text Markup Language
D) Home Tool Management Language
Q6. Which layer of the OSI model is responsible for logical addressing (IP addresses)? (5
marks)
A) Physical Layer
B) Data Link Layer
C) Network Layer
D) Transport Layer
Q7. What type of database uses tables to store data, with rows and columns, and defines
relationships between these tables? (5 marks)
A) NoSQL Database
B) Graph Database
C) Relational Database
D) Document Database
Q8. What is the main purpose of a compiler? (5 marks)
A) To execute machine code
B) To translate high-level code into machine code
C) To debug source code
D) To manage computer hardware
Q9. Which of the following is a common cybersecurity threat that involves tricking users
into revealing sensitive information? (5 marks)
A) DDoS Attack
B) SQL Injection
C) Phishing
D) Buffer Overflow
Q10. What component of a CPU performs arithmetic and logical operations? (5 marks)
A) Control Unit (CU)
B) Arithmetic Logic Unit (ALU)
C) Registers
D) Cache Memory
Q11. Which programming paradigm focuses on 'how to do it' with sequences of commands
or statements? (5 marks)
A) Object-Oriented Programming
B) Functional Programming
C) Declarative Programming
D) Imperative Programming
Q12. What is the term for a block of code designed to perform a specific task, often referred
to as a function or method? (5 marks)
A) Variable
B) Loop
C) Subroutine
D) Array
Q13. What does SQL stand for? (5 marks)
A) Structured Question Language
B) Standard Query Logic
C) Structured Query Language
D) Sequential Query Logic
Q14. Which data structure is best suited for representing hierarchical data like a file system
or an organizational chart? (5 marks)
A) Queue
B) Graph
C) Tree
D) Hash Table
Q15. What is a 'fork' in the context of an operating system? (5 marks)
A) A command to delete a file
B) A system call to create a new process
C) A network protocol
D) A type of memory allocation
Q16. Which principle of software development advocates for breaking down a large system
into smaller, manageable, and independent modules? (5 marks)
A) Encapsulation
B) Modularity
C) Inheritance
D) Polymorphism
Q17. In artificial intelligence, what is 'unsupervised learning'? (5 marks)
A) Learning with labeled training data
B) Learning without labeled training data
C) Learning through trial and error with rewards
D) Learning by observing human behavior
Q18. What is the primary role of CSS in web development? (5 marks)
A) To define the structure and content of a webpage
B) To add interactivity and dynamic behavior to a webpage
C) To control the presentation and styling of a webpage
D) To manage server-side logic for a webpage
Q19. Which type of memory is volatile and loses its data when the power is turned off? (5
marks)
A) ROM (Read-Only Memory)
B) Hard Disk Drive
C) RAM (Random Access Memory)
D) Solid State Drive (SSD)
Q20. What is the purpose of version control systems like Git? (5 marks)
A) To manage network traffic
B) To compile source code
C) To track changes in source code and collaborate on projects
D) To encrypt data for security
ANSWER KEY (For Examiner Only)
Q1: Option B Q2: Option B Q3: Option C Q4: Option C Q5: Option A
Q6: Option C Q7: Option C Q8: Option B Q9: Option C Q10: Option B
Q11: Option D Q12: Option C Q13: Option C Q14: Option C Q15: Option B
Q16: Option B Q17: Option B Q18: Option C Q19: Option C Q20: Option C