Home / Exit exam / Past papers / MoE Exit Exam 2015 E.C. (CSE)
MoE Exit Exam 2015 E.C. (CSE): questions and answers
Real past paper for Computer Science, Computer Science & Engineering, 2015 E.C. (2023 G.C.). 100 questions, 180 minutes. This is the actual Ministry of Education paper, with the answer key and an explanation for each question.
The first 10 questions
Open "Show answer" under a question to see the correct option and the explanation. The full paper, with the clock, scoring and a review of every question, is in the app.
1. A process is terminated by the operating system due to a reference to non-existing memory. Which one of the following best explains the process termination?
- Error exit
- Fatal exit
- Normal exit
- Terminated by another process
Show answer
Answer: B. Fatal exit
A fatal exit occurs when a process attempts to access memory that doesn't exist (segmentation fault). This is a severe error that forces the OS to terminate the process.
2. Size of large data files can be reduced to save storage disk space. Which algorithm is appropriate to reduce size of large files?
- Merge sort algorithm
- Huffman encoding algorithm
- Heap sort algorithm
- Prim's algorithm
Show answer
Answer: B. Huffman encoding algorithm
Huffman encoding is a lossless data compression algorithm that uses variable-length codes to represent data, with more frequent data items getting shorter codes, thus reducing overall file size.
3. Which one of the following is asynchronous in message communication?
- Blocking send
- Blocking receive
- Direct message
- Non-block receive
Show answer
Answer: D. Non-block receive
Non-blocking receive is asynchronous because the receiver doesn't wait for the message to arrive - it can continue processing and check for messages later.
4. Which one of the following is true about functions in JavaScript?
- Function names can begin with digits
- There is no limit to the number of function parameters that a function may contain
- Function names can contain spaces
- Function names are not case-sensitive
Show answer
Answer: B. There is no limit to the number of function parameters that a function may contain
JavaScript functions can technically accept any number of parameters (though practical limits exist based on implementation). Function names cannot begin with digits (a), cannot contain spaces (c), and are case-sensitive (d).
5. Consider the following fragment of C++ code: {'type': 'line-break'} {'type': 'line-break'} const int x = 8; {'type': 'line-break'} const int y = 16; {'type': 'line-break'} if(x > y) {'type': 'line-break'} { {'type': 'line-break'} int z = x + y; {'type': 'line-break'} } {'type': 'line-break'} {'type': 'line-break'} For codes like the above one, which technique of code optimization is appropriate?
- Arithmetic simplification
- Compile time evaluation
- Code motion
- Dead code elimination
Show answer
Answer: D. Dead code elimination
Dead code elimination would remove the entire if block since the condition (8 > 16) is always false at compile time, making the code inside unreachable.
6. Suppose you have received a message from your friend but the message is scrambled for the sake of security. Your friend has used a program to encode messages into scrambled text. In order to read the message which program would you use?
- Secret key
- Decryption program
- Encryption program
- Ciphertext
Show answer
Answer: B. Decryption program
A decryption program is needed to reverse the encryption process and convert the scrambled message (ciphertext) back to its original form.
7. In a tree data structure, if a node has no parent node, then the node is ______.
- External node
- Root node
- Internal node
- Parent node
Show answer
Answer: B. Root node
The root node is the only node in a tree that has no parent. All other nodes have exactly one parent (except in graphs).
8. Which statement is true about pop() operation of Stack data structures?
- pop() inserts new element at the middle of stack
- pop() returns the end/top element but it doesn't delete that element
- pop() removes the end/top element from stack
- pop() inserts new element at the beginning/bottom of stack
Show answer
Answer: C. pop() removes the end/top element from stack
The pop() operation in a stack removes and returns the top element (LIFO principle). It doesn't insert elements (that's push()) and it does remove the element.
9. Given the schemas: {'type': 'line-break'} BOOK (Book_id, Title, Publisher_name) {'type': 'line-break'} BOOK_AUTHOR (Book_id, Author_name) {'type': 'line-break'} PUBLISHER (Name, Address, Phone) {'type': 'line-break'} {'type': 'line-break'} Which one of the following SQL is correct to delete the publisher named as 'XWZ' from the PUBLISHER table
- DELETE FROM PUBLISHER WHERE Address = 'XWZ'
- DELETE FROM PUBLISHER WHERE Name = 'XWZ'
- DELETE FROM BOOK_AUTHOR WHERE Address = 'XWZ'
- DELETE FROM BOOK WHERE Name = 'XWZ'
Show answer
Answer: B. DELETE FROM PUBLISHER WHERE Name = 'XWZ'
The correct SQL deletes from the PUBLISHER table where the Name column matches 'XWZ'. The other options either delete from wrong tables or use incorrect conditions.
10. Which one of the following is not correct about transaction failure?
- Concurrency control enforcement avoids transaction failure
- Transactions fail if logical errors are detected
- Transactions fail if disk blocks lose their data
- Catastrophes can be cause of transaction failure
Show answer
Answer: A. Concurrency control enforcement avoids transaction failure
Concurrency control prevents interference between transactions but doesn't prevent all types of failures. Transactions can fail due to logical errors (b), disk failures (c), and catastrophes (d).
Take the full Computer Science paper
Free for every account. Timed mode, scoring and explanations after every question.
Start studying free Log in