ExitPrep

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.

100questions
180minutes
Freefor every account

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?

  1. Error exit
  2. Fatal exit
  3. Normal exit
  4. 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?

  1. Merge sort algorithm
  2. Huffman encoding algorithm
  3. Heap sort algorithm
  4. 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?

  1. Blocking send
  2. Blocking receive
  3. Direct message
  4. 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?

  1. Function names can begin with digits
  2. There is no limit to the number of function parameters that a function may contain
  3. Function names can contain spaces
  4. 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?

  1. Arithmetic simplification
  2. Compile time evaluation
  3. Code motion
  4. 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?

  1. Secret key
  2. Decryption program
  3. Encryption program
  4. 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 ______.

  1. External node
  2. Root node
  3. Internal node
  4. 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?

  1. pop() inserts new element at the middle of stack
  2. pop() returns the end/top element but it doesn't delete that element
  3. pop() removes the end/top element from stack
  4. 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

  1. DELETE FROM PUBLISHER WHERE Address = 'XWZ'
  2. DELETE FROM PUBLISHER WHERE Name = 'XWZ'
  3. DELETE FROM BOOK_AUTHOR WHERE Address = 'XWZ'
  4. 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?

  1. Concurrency control enforcement avoids transaction failure
  2. Transactions fail if logical errors are detected
  3. Transactions fail if disk blocks lose their data
  4. 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).

90 more questions in this paper. Sign up free to take the whole paper in timed exam mode.

Take the full Computer Science paper

Free for every account. Timed mode, scoring and explanations after every question.

Start studying free Log in

All Computer Science papers, notes and practice