The Shell Basic Commands, Shell Programming MCQs
1. Which command is used to set a shell variable in Linux?a) exportb) setc) defined) var Answer: a) export Explanation: In Linux, the export command … Read more
1. Which command is used to set a shell variable in Linux?a) exportb) setc) defined) var Answer: a) export Explanation: In Linux, the export command … Read more
1. What is the primary function of the kernel in a Unix/Linux operating system?a) Providing a graphical user interfaceb) Managing hardware resources and providing essential … Read more
1. Which type of join is used to combine rows from two or more tables based on a related column between them? A) Equi-joinB) Non-equijoinC) … Read more
1. Which SQL statement is used to add new records to a table? a) SELECTb) INSERTc) UPDATEd) DELETE Answer: b) INSERT Explanation: The INSERT statement … Read more
1. Which data model organizes data into a tree-like structure with one-to-many relationships? a) Relational Data Modelb) Hierarchical Modelc) Network Data Modeld) Object-Oriented Model Answer: … Read more
1. What is the primary purpose of a Database Management System (DBMS)?A) To create complex spreadsheetsB) To organize and manage data efficientlyC) To design websitesD) … Read more
1. What is an object in object-oriented programming (OOP)? a) A blueprint for creating instances of classesb) A collection of related variables and functionsc) An … Read more
1. Which of the following best describes a structure in C programming?a) A built-in data typeb) A collection of variables of different data types under … Read more
1. What is an array? a) A data structure that stores elements of the same type sequentially in memoryb) A data structure that stores elements … Read more