CSS Exam Info
Computer Science Past Paper MCQs
Computer Science-I 2024 MCQs
1 / 20
What is the name of a linear collection of data components where the linear node is provided by a pointer?
A linked list is a linear data structure where each element (node) points to the next.
2 / 20
Which programming language allows for polymorphism but not classes?
Ada allows polymorphism but is not a class-based language, hence does not support classes in the traditional sense.
3 / 20
If an employee requests root access to a UNIX system in which you serve as the administrator, you shouldn't provide them access or this authority unless their job necessitates certain rights and privileges. Which cyber security notion may it be seen as an excellent example of:
The principle of least privilege dictates that users should have the minimum level of access required to perform their tasks.
4 / 20
Which component is responsible for providing power supply to all other components in a computer system?
The PSU supplies power to all other components within a computer.
5 / 20
When we attempt to add the eleventh element to a stack with a size of 10, we encounter a circumstance known as:
Overflow occurs when adding an element to a full stack, surpassing its defined capacity.
6 / 20
After a certain amount of time, say thirty minutes, the online application, similar to banking websites, should prompt users to log in again. Which cyber security concept may it be seen as a prime example of:
Complete mediation ensures that permissions are checked each time an action is performed, such as requiring re-authentication after a timeout.
7 / 20
Which of the following is considered as the world's first antivirus program?
Reaper is considered the first antivirus program, created to remove the Creeper virus.
8 / 20
Which of the following ports is used to connect external devices such as printers, scanners, and cameras to a computer?
USB ports are commonly used for connecting external devices like printers, scanners, and cameras to a computer.
9 / 20
Which language does not allow for inheritance in all four forms?
Kotlin restricts inheritance in certain ways (e.g., inheritance is not allowed for data classes and functions marked as final).
final
10 / 20
Which type of monitor technology offers the widest viewing angles and accurate color reproduction?
OLED displays offer the widest viewing angles and accurate color reproduction compared to other display types.
11 / 20
Select the correct output of the following code. #include int main() { int arr[5]={10,20,30,40,50}; printf("%d", arr[5]); return 0; }
arr[5] is an out-of-bounds access for an array defined with five elements, which results in a garbage value.
12 / 20
Which of the following is NOT an agile software development methodology?
The Waterfall model is not considered an agile methodology; it follows a linear approach, unlike agile's iterative methods.
13 / 20
What is an example of system software from the list below?
14 / 20
Which was the first purely object-oriented programming language developed?
SmallTalk is recognized as the first purely object-oriented programming language.
15 / 20
Which of the following malware types does not infect others and duplicate or clone itself?
Trojans do not replicate or clone themselves, unlike worms and other self-propagating malware.
16 / 20
Compiler can check ____ error.
Compilers primarily check for Syntax errors to ensure the code follows the language's structural rules.
17 / 20
Regarding Binary Trees, which of the following is true?
A full binary tree is a specific kind of complete binary tree where each node has exactly 0 or 2 children.
18 / 20
A high-level language compiler that runs on one computer and generates code for another is known as:
A cross compiler runs on one machine but generates code for a different machine architecture.
19 / 20
When compiled, which of the following class of statement often yields no executable code?
Structural statements often help in defining program structure and do not generate executable code when compiled.
20 / 20
How much time would it take to add an element to the linked list asymptotically?
Adding an element to a linked list (especially at the beginning or end) takes O(1) time asymptotically.
Your score is
The average score is 36%
Restart quiz Exit
How was the test? Please Submit your Rating and give a feedback!
Your email address will not be published. Required fields are marked *
Δ