Which of the following is used to describe the worst case of an algorithm ?
a.
Big W
b.
Big A
c.
Big O
Correct Answer
d.
Big S
Step-by-Step AI Explanation
Verified Method
Big O (Big O notation) is the standard mathematical notation used to describe the asymptotic upper bound of an algorithm's running time, which represents the worst-case scenario. Big W (Omega) represents the best case, and Big S is not a standard asymptotic notation.
Q2mcq1 mark
The datatype whose representation is unknown are called as :
a.
Concrete datatype
b.
Built-in datatype
c.
Abstract datatype
Correct Answer
d.
Derived datatype
Step-by-Step AI Explanation
Verified Method
An Abstract Data Type (ADT) is a model for data types where the implementation details are hidden from the user, focusing instead on the operations that can be performed. Concrete, built-in, and derived data types generally have known or explicit representations.
Q3mcq1 mark
Which key is pressed to execute Python Script ?
a.
F1
b.
F5
Correct Answer
c.
F3
d.
F2
Step-by-Step AI Explanation
Verified Method
In the Python IDLE environment, the F5 key is the standard shortcut used to run or execute the currently open Python script.
Q4mcq1 mark
Which of the following defines what an object can do ?
a.
Interface
Correct Answer
b.
Operating System
c.
Interpreter
d.
Compiler
Step-by-Step AI Explanation
Verified Method
An interface defines a set of methods or behaviors that an object can perform without specifying how those methods are implemented. It acts as a contract for the object's functionality.
Q5mcq1 mark
Which of the following security technique that regulates who can view or use resources in a computing environment ?
a.
Access control
Correct Answer
b.
Password
c.
Certification
d.
Authentication
Step-by-Step AI Explanation
Verified Method
Access control is the security process that manages and restricts who is authorized to view or use specific computing resources. Authentication identifies a user, while passwords are a method to gain access, but Access Control is the overall regulation technique.
Q6mcq1 mark
Which of the following is the Slicing Operator ?
a.
< >
b.
{ }
c.
( )
d.
[ ]
Correct Answer
Step-by-Step AI Explanation
Verified Method
In Python, the square brackets [ ] are the designated slicing operator used to extract a subset of elements from a sequence like a string, list, or tuple.
Q7mcq1 mark
In Python the process of creating an object is called as __________.
a.
Initialize
b.
Constructor
c.
Instantiation
Correct Answer
d.
Destructor
Step-by-Step AI Explanation
Verified Method
Instantiation is the process of creating a specific instance (object) of a class. The constructor is the method called during this process, but the act itself is known as instantiation.
Q8mcq1 mark
Pick the correct one to execute the given statement successfully. if __________ : print(x, ''is a leap year'')
a.
x/4=0
b.
x%2=0
c.
x%4=0
d.
x%4==0
Correct Answer
Step-by-Step AI Explanation
Verified Method
To check if a number x is a leap year, we must check if the remainder when divided by 4 is zero using the modulo operator (%) and the equality operator (==). Option C uses an assignment operator (=), which is incorrect for a condition.
Q9mcq1 mark
What symbol is used for SELECT statement ?
a.
X
b.
σ
Correct Answer
c.
Ω
d.
Π
Step-by-Step AI Explanation
Verified Method
In relational algebra, the SELECT operation (used for filtering rows) is represented by the Greek letter sigma (σ). Option (D) Π represents the PROJECT operation.
Q10mcq1 mark
If List = [10, 20, 30, 40, 50] then List [2] = 35 will result :
a.
[10, 20, 35, 40, 50]
Correct Answer
b.
[35, 10, 20, 30, 40, 50]
c.
[10, 35, 30, 40, 50]
d.
[10, 20, 30, 40, 50, 35]
Step-by-Step AI Explanation
Verified Method
Python lists use zero-based indexing. Index 2 refers to the third element, which is 30. Assigning 35 to List[2] replaces 30 with 35, resulting in [10, 20, 35, 40, 50].
🎉 10 Free Sample Solutions Completed
Unlock All 40 Questions & Solutions
Sign up free in seconds to unlock step-by-step AI answers for the remaining 30 questions.
(a)What is the purpose of range( ) function ? Explain with an example. OR (b)Explain the following operators in Relational algebra with suitable examples. (i)UNION (ii)INTERSECTION (iii)DIFFERENCE (iv)CARTESIAN PRODUCT
Correct Answer & Step-by-Step Solution Locked
Sign in free to reveal the correct answer and AI explanation for this question.