__________ members are accessible from outside the class.
a.
Secured members
b.
Public members
Correct Answer
c.
Private members
d.
Protected members
Step-by-Step AI Explanation
Verified Method
Public members are accessible from outside the class as they have no access restrictions. Private members (c) are accessible only within the class. Protected members (d) are restricted to the class and its subclasses. Secured (a) is not a standard access modifier keyword in object-oriented terminology.
Q2mcq1 mark
Which of the following is not a keyword in Python ?
a.
continue
b.
break
c.
operator
Correct Answer
d.
while
Step-by-Step AI Explanation
Verified Method
In Python, 'continue', 'break', and 'while' are reserved keywords used for control flow. 'operator' is not a reserved keyword in Python; it is the name of a standard library module.
Q3mcq1 mark
The small sections of code that are used to perform a particular task is called :
a.
Pseudo code
b.
Subroutines
Correct Answer
c.
Modules
d.
Files
Step-by-Step AI Explanation
Verified Method
Subroutines (also known as functions) are small, reusable sections of code designed to perform a specific task. Pseudo code is a high-level description of an algorithm, modules are files containing code, and files are data storage entities.
Q4mcq1 mark
The number of important control structures in Python :
a.
5
b.
3
Correct Answer
c.
6
d.
4
Step-by-Step AI Explanation
Verified Method
Python generally classifies control structures into 3 main types: Sequential, Selection (or Branching), and Iteration (or Looping).
Q5mcq1 mark
Class members are accessed through ________ operator.
a.
#
b.
&
c.
%
d.
.
Correct Answer
Step-by-Step AI Explanation
Verified Method
In Python (and many other object-oriented languages), the dot operator (.) is used to access the attributes and methods of a class object.
Q6mcq1 mark
The database Model which represents the Parent-Chil d relationship :
a.
Hierarchical
Correct Answer
b.
Relational
c.
Object
d.
Network
Step-by-Step AI Explanation
Verified Method
The Hierarchical database model organizes data into a tree-like structure, where each record has a single parent and can have multiple children, explicitly representing the parent-child relationship.
Q7mcq1 mark
The operator which is used for concatenation ?
a.
*
b.
1
c.
=
d.
&
Correct Answer
Step-by-Step AI Explanation
Verified Method
In many contexts, such as SQL and certain programming environments, the ampersand (&) or plus (+) is used for concatenation. Among the given choices, the & operator is the recognized symbol for concatenating strings or items.
Q8mcq1 mark
Importing C++ program in a Python program is called __________.
a.
Interconnecting
b.
Wrapping
Correct Answer
c.
Parsing
d.
Downloading
Step-by-Step AI Explanation
Verified Method
Wrapping is the process of creating a Python interface for C++ code, effectively 'wrapping' the C++ functionality so that it can be imported and executed within a Python program.
Q9mcq1 mark
__________ command is used to remove a table from the d atabase.
a.
DELETE ALL
b.
DROP TABLE
Correct Answer
c.
ALTER TABLE
d.
DELETE
Step-by-Step AI Explanation
Verified Method
The 'DROP TABLE' command is used to remove an entire table structure and its data from the database. 'DELETE' is used to remove specific rows based on a condition. 'ALTER TABLE' is used to modify the structure of an existing table. 'DELETE ALL' is not a standard SQL command.
Q10mcq1 mark
The function that returns the largest value of the selected column is :
a.
HIGH ( )
b.
MAX ( )
Correct Answer
c.
MAXIMUM ( )
d.
LARGE ( )
Step-by-Step AI Explanation
Verified Method
In SQL, the aggregate function 'MAX()' is used to return the maximum or largest value from a selected column. HIGH(), MAXIMUM(), and LARGE() are not standard SQL aggregate functions.
🎉 10 Free Sample Solutions Completed
Unlock All 38 Questions & Solutions
Sign up free in seconds to unlock step-by-step AI answers for the remaining 28 questions.