1. Which of the following is NOT a Common Lisp equality test predicate?
Answer
Correct Answer:
e
Note: This Question is unanswered, help us to find answer for this one
2. What is the most important problem of the a conservative garbage collector?
Answer
Correct Answer:
It has risk of misidentifying an application data as a heap pointer
Note: This Question is unanswered, help us to find answer for this one
3. Which data structure does a compiler use to solve the register allocation problem?
Answer
Correct Answer:
registers interference graph
Note: This Question is unanswered, help us to find answer for this one
4. When does a memory leak happen?
Answer
Correct Answer:
It happens when memory is still marked as used even after the object has been deleted.
Note: This Question is unanswered, help us to find answer for this one
5. What is the main disadvantage of the bitmapped memory allocation scheme of the manual memory management?
Answer
Correct Answer:
It allocates memory too slow.
Note: This Question is unanswered, help us to find answer for this one
6. Which of the following is NOT a garbage collection technique?
Answer
Correct Answer:
Composed reference counting
Note: This Question is unanswered, help us to find answer for this one
7. When using 'optional' keyword for declaring a lambda, such as 'optional (x y z)', what does x, y and z signify?
Answer
Correct Answer:
x is a variable name, z is a binding flag and y is the default value for the variable x
Note: This Question is unanswered, help us to find answer for this one
8. Is it possible to prove the theoretical stability (that is, prove that a collection algorithm will work as expected) of a garbage collector used in conjunction with C language?
Answer
Correct Answer:
It is not possible to prove the theoretical stability of any garbage collector type.
Note: This Question is unanswered, help us to find answer for this one
9. Which of the following is NOT a garbage collection algorithm?
Answer
Correct Answer:
Car algorithm
Note: This Question is unanswered, help us to find answer for this one
10. What does it mean if when an algorithm "A", belongs to the O(n) algorithms:
Answer
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
11. What is the fastest way to establish a relationship between two objects?
Answer
Correct Answer:
By using a hash map.
Note: This Question is unanswered, help us to find answer for this one
12. Which of the following is a dispatch macro character in Common Lisp?
Answer
Correct Answer:
#
Note: This Question is unanswered, help us to find answer for this one
13.
What does the following Common Lisp line describes?
(vector 'integer 1234567890)
Answer
Correct Answer:
This is a vector of integers and its length is 1234567890
Note: This Question is unanswered, help us to find answer for this one
14. Which among the following is NOT a standard Common Lisp stream?
Answer
Correct Answer:
*terminal-input*
Note: This Question is unanswered, help us to find answer for this one
15. What is the main advantage of using segregated lists usage in the manual memory management?
Answer
Correct Answer:
Memory management systems based on segregated lists are extremely fast
Note: This Question is unanswered, help us to find answer for this one
16. What is the optimal way of copying the contents of one array to another in C language?
Answer
Correct Answer:
By using the memcpy function.
Note: This Question is unanswered, help us to find answer for this one
17. Assume that two instructions L1 and L2 are dependent in a flow graph. What does it mean when one says that they are output-dependent?
Answer
Correct Answer:
They write to the same memory location when called
Note: This Question is unanswered, help us to find answer for this one
18. Which of the following options is NOT a technique used in "peephole optimization" of the generated code in a compiler?
Answer
Correct Answer:
Optimization of the generated code by performing branching analysis algorithms which take target machine characteristics into account
Note: This Question is unanswered, help us to find answer for this one
19. What is the relationship between lexical and syntax analysis?
Answer
Correct Answer:
They have no relationship with each other.
Note: This Question is unanswered, help us to find answer for this one
20. What functionality of the listed below is NOT common to a parser?
Answer
Correct Answer:
Semantic errors handling in a program sources
Note: This Question is unanswered, help us to find answer for this one
21. What branching instructions type is more resource-consuming on the RISC processor?
Answer
Correct Answer:
Long branch instruction
Note: This Question is unanswered, help us to find answer for this one
22. Which among the following is NOT a common element of parser internals?
Answer
Correct Answer:
Petri net
Note: This Question is unanswered, help us to find answer for this one
23. Which of the following is NOT a valid Common Lisp symbol name?
Answer
Correct Answer:
#?#
Note: This Question is unanswered, help us to find answer for this one
24. Which of the following is NOT a standard Common Lisp type testing predicate?
Answer
Correct Answer:
standard-string-p
Note: This Question is unanswered, help us to find answer for this one
25. What is the difference between a Static Single Assignments graph (SSAG) and a Control Flow Graph (CFG) which are used for the intermediate compiled sources representation in a compiler?
Answer
Correct Answer:
All of the above.
Note: This Question is unanswered, help us to find answer for this one
26. What is an NP-complete problem?
Answer
Correct Answer:
None of the above
Note: This Question is unanswered, help us to find answer for this one
27. What is a heapsort?
Answer
Correct Answer:
A fast and memory-effective sorting algorithm.
Note: This Question is unanswered, help us to find answer for this one
28. What is the difference between a general binary search tree and an optimal binary search tree?
Answer
Correct Answer:
An optimal binary search tree has less average expected search time as compared with a general binary search tree's one.
Note: This Question is unanswered, help us to find answer for this one
29. Which of the following sorting algorithms has average speed estimation defined as : O(n)?
Answer
Correct Answer:
All of the above
Note: This Question is unanswered, help us to find answer for this one
30. What is a generated code optimization method which is NOT suitable for use in a compiler?
Answer
Correct Answer:
Code branching prediction
Note: This Question is unanswered, help us to find answer for this one
31. What is a bytecode interpreter?
Answer
Correct Answer:
A program which executes bytecode instructions.
Note: This Question is unanswered, help us to find answer for this one
32. What is amortized analysis is used for?
Answer
Correct Answer:
To find out the average algorithm performance in worst case
Note: This Question is unanswered, help us to find answer for this one
33. What is the difference between eq and eql type predicates in Common Lisp?
Answer
Correct Answer:
eq is true only when tested object are the same identical object and eql is true only when tested objects have the same type and value
Note: This Question is unanswered, help us to find answer for this one
34. What is the advantage of using a suballocator in a memory management system?
Answer
Correct Answer:
It obtains large blocks of memory from the system memory manager and allocates the memory to the application in smaller pieces.
Note: This Question is unanswered, help us to find answer for this one
35. Which of the following problems prevents garbage collectors from being used in the real-time systems?
Answer
Correct Answer:
They can make real-time systems hang for some period of time.
Note: This Question is unanswered, help us to find answer for this one
36. What is the return value of the subtype "predicate", in case it CANNOT decide what is the relation between types it is asked about?
Answer
Correct Answer:
It will return (nil nil)
Note: This Question is unanswered, help us to find answer for this one
37. Is garbage collection available in Common Lisp implementations?
Answer
Correct Answer:
Yes, in all implementations.
Note: This Question is unanswered, help us to find answer for this one
38. Is it possible to multiply two matrices with dimensions 4*6 for the first matrix and 8*10 for the second matrix?
Answer
Correct Answer:
It is always impossible.
Note: This Question is unanswered, help us to find answer for this one
39. Which of the following algorithms is NOT related to a graph mining?
Answer
Correct Answer:
Fast Fourier transform algorithm
Note: This Question is unanswered, help us to find answer for this one
40. Which of the following is NOT a characteristic of a greedy algorithm?
Answer
Correct Answer:
A greedy algorithm always gives an optimal problem solution.
Note: This Question is unanswered, help us to find answer for this one