Home / Exit exam / Past papers / MoE Exit Exam 2017 E.C. (CSE)
MoE Exit Exam 2017 E.C. (CSE): questions and answers
Real past paper for Computer Science, Computer Science & Engineering, 2017 E.C. (2025 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 5 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.
Take the full Computer Science paper
Start free with the oldest paper of your department, then unlock this one with Premium.
Start studying free Log in