Docsity

Certified Computer Scientist Exam, Exams of Technology

Toggle sidebar
bg1
Certified Computer Scientist Exam
Question 1. Which of the following is a tautology in propositional logic?
A) P ∧ ¬P
B) P ∨ ¬P
C) P → Q
D) P ↔ Q
Answer: B
Explanation: P ∨ ¬P (P or not-P) is a tautology because it is true in all possible truth values, representing
the law of the excluded middle.
Question 2. In first-order logic, which quantifier is used to express "there exists at least one"?
A) ∀
B) ∃
C) ¬
D) ∑
Answer: B
Explanation: The existential quantifier (∃) indicates that there is at least one element in the domain for
which the predicate holds.
Question 3. Which normal form expresses a logical formula as a conjunction of disjunctions?
A) CNF
B) DNF
C) Prenex
D) Skolem
Answer: A
Explanation: Conjunctive Normal Form (CNF) is a conjunction of disjunctions (ORs of literals), commonly
used in logic and theorem proving.
Question 4. If A and B are sets, what is the result of A ∩ (B ∖ A)?
A) The elements in A and B
B) The elements in B but not in A
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48

Partial preview of the text

Download Certified Computer Scientist Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which of the following is a tautology in propositional logic? A) P ∧ ¬P B) P ∨ ¬P C) P → Q D) P ↔ Q Answer: B Explanation: P ∨ ¬P (P or not-P) is a tautology because it is true in all possible truth values, representing the law of the excluded middle. Question 2. In first-order logic, which quantifier is used to express "there exists at least one"? A) ∀ B) ∃ C) ¬ D) ∑ Answer: B Explanation: The existential quantifier (∃) indicates that there is at least one element in the domain for which the predicate holds. Question 3. Which normal form expresses a logical formula as a conjunction of disjunctions? A) CNF B) DNF C) Prenex D) Skolem Answer: A Explanation: Conjunctive Normal Form (CNF) is a conjunction of disjunctions (ORs of literals), commonly used in logic and theorem proving. Question 4. If A and B are sets, what is the result of A ∩ (B ∖ A)? A) The elements in A and B B) The elements in B but not in A

C) The empty set D) The elements in A not in B Answer: C Explanation: A ∩ (B ∖ A) is empty because B ∖ A contains elements not in A, so intersection with A yields no common elements. Question 5. Which relation is characterized by being reflexive, symmetric, and transitive? A) Partial order B) Equivalence relation C) Antisymmetric relation D) Function Answer: B Explanation: An equivalence relation is reflexive, symmetric, and transitive, partitioning the set into equivalence classes. Question 6. Which type of function from set A to B is both injective and surjective? A) Injective B) Surjective C) Bijective D) Constant Answer: C Explanation: A bijective function is both one-to-one (injective) and onto (surjective), establishing a perfect pairing between A and B. Question 7. In graph theory, what does the degree of a vertex represent? A) The number of edges incident to it B) The length of the shortest path from it to another vertex C) The number of vertices connected to it D) The total weight of edges incident to it Answer: A

Question 11. The pigeonhole principle states that if n+1 objects are placed into n boxes, then: A) All objects are in one box B) At least one box contains more than one object C) Each box contains exactly one object D) The objects are evenly distributed Answer: B Explanation: The pigeonhole principle guarantees that at least one box must contain more than one object when placing n+1 objects into n boxes. Question 12. Which recurrence relation is linear and homogeneous? A) T(n) = 2T(n-1) + 3 B) T(n) = T(n-1) + T(n-2) C) T(n) = 3T(n-1) - T(n-2) D) T(n) = T(n-1) + n Answer: B Explanation: T(n) = T(n-1) + T(n-2) is linear and homogeneous because the relation is linear with no additional constant term. Question 13. Generating functions are primarily used to: A) Solve differential equations B) Count combinatorial structures C) Encrypt data D) Optimize algorithms Answer: B Explanation: Generating functions encode sequences to facilitate counting and solving recurrence relations in combinatorics. Question 14. Which event probability is calculated as P(A ∩ B) / P(B)? A) Marginal probability B) Conditional probability

C) Joint probability D) Complement probability Answer: B Explanation: Conditional probability P(A|B) is calculated as P(A ∩ B) divided by P(B). Question 15. The probability distribution that models the number of successes in a fixed number of independent Bernoulli trials is: A) Normal distribution B) Poisson distribution C) Binomial distribution D) Exponential distribution Answer: C Explanation: The binomial distribution models the number of successes in a fixed number of independent Bernoulli trials with constant probability. Question 16. The mean of a random variable is best described as: A) The middle value when data is ordered B) The value that appears most frequently C) The expected value of the distribution D) The spread of the data Answer: C Explanation: The mean (or expected value) is the average outcome of a random variable over many trials. Question 17. In linear algebra, the determinant of a matrix provides information about: A) The rank of the matrix B) The invertibility of the matrix C) The eigenvalues D) The trace of the matrix Answer: B

Question 21. In calculus, a local maximum occurs where the first derivative: A) Is positive B) Is negative C) Is zero D) Does not exist Answer: C Explanation: At a local maximum, the derivative is zero (critical point), and the second derivative test confirms the maximum. Question 22. The definite integral of a function over an interval represents: A) The area under the curve B) The slope of the function C) The maximum value D) The average value Answer: A Explanation: The definite integral computes the area under the curve between two points, considering the function's shape. Question 23. Newton-Raphson method is used to: A) Find roots of nonlinear equations B) Integrate functions numerically C) Solve linear systems D) Determine eigenvalues Answer: A Explanation: Newton-Raphson iteratively approximates roots of nonlinear equations using derivatives. Question 24. Which of the following is a feature of fixed-point arithmetic? A) It can represent very large numbers efficiently B) It has a fixed number of digits after the decimal point

C) It supports fractional numbers with arbitrary precision D) It is used exclusively in floating-point representations Answer: B Explanation: Fixed-point arithmetic has a fixed number of digits after the decimal point, suitable for applications requiring consistent fractional precision. Question 25. In computer organization, the control unit is responsible for: A) Performing arithmetic operations B) Fetching and decoding instructions C) Storing data D) Managing cache memory Answer: B Explanation: The control unit fetches instructions from memory, decodes them, and orchestrates the execution of commands. Question 26. Which type of memory is fastest and closest to the CPU? A) RAM B) Cache C) Hard disk D) Virtual memory Answer: B Explanation: Cache memory is the fastest and resides close to the CPU, reducing access time for frequently used data. Question 27. In pipelined architectures, a hazard that occurs when two instructions need the same resource simultaneously is called: A) Structural hazard B) Data hazard C) Control hazard D) Logical hazard

Question 31. Which logical gate outputs true only when all inputs are true? A) AND B) OR C) NOT D) XOR Answer: A Explanation: The AND gate outputs true only if all its inputs are true. Question 32. Which combinational circuit performs binary addition? A) Multiplexer B) Adder C) Decoder D) Encoder Answer: B Explanation: An adder circuit performs binary addition of two bits, fundamental for arithmetic operations. Question 33. A flip-flop that changes state on the rising edge of the clock signal is called: A) D flip-flop B) T flip-flop C) JK flip-flop D) Edge-triggered flip-flop Answer: D Explanation: Edge-triggered flip-flops change state on a specific clock edge, either rising or falling. Question 34. The IEEE 754 standard is used for: A) Integer representation B) Floating-point representation C) Character encoding

D) Error detection Answer: B Explanation: IEEE 754 specifies formats for floating-point arithmetic in computers. Question 35. The control unit in a CPU is responsible for: A) Arithmetic operations B) Managing instruction execution C) Data storage D) Input/output operations Answer: B Explanation: The control unit directs the flow of data and instructions within the CPU, coordinating operations. Question 36. Which instruction set architecture type emphasizes complex instructions that can execute multiple operations? A) RISC B) CISC C) VLIW D) EPIC Answer: B Explanation: CISC architectures have complex instructions that may perform multiple low-level operations. Question 37. In programming, variables are used to: A) Store data values B) Perform calculations C) Control program flow D) Handle exceptions Answer: A Explanation: Variables are storage locations for data values during program execution.

B) Finding the minimum edge C) Updating the union-find structure D) Traversing all vertices Answer: A Explanation: Sorting edges initially is the most time-consuming step, typically O(E log E). Question 42. The Floyd-Warshall algorithm computes: A) Single-source shortest paths B) All-pairs shortest paths C) Minimum spanning trees D) Maximum flow Answer: B Explanation: Floyd-Warshall finds shortest paths between all pairs of vertices in a weighted graph. Question 43. The pigeonhole principle is often used to show that: A) Certain combinatorial configurations are impossible B) Large sets contain subsets with specific properties C) There must be collisions in hash functions D) A function is injective Answer: C Explanation: The pigeonhole principle demonstrates that collisions (two inputs mapping to the same output) are inevitable in hash functions with limited output space. Question 44. When solving a recurrence relation T(n) = T(n-1) + n, which method is most appropriate? A) Characteristic equation B) Iteration C) Matrix method D) Generating functions Answer: B

Explanation: Iteration involves expanding the recurrence step-by-step to find a closed form. Question 45. Which of the following is a property of a normal distribution? A) Skewed to the right B) Symmetric about its mean C) Uniform shape D) Discrete values only Answer: B Explanation: The normal distribution is symmetric around its mean, with the famous bell-shaped curve. Question 46. The determinant of a 2×2 matrix [[a, b], [c, d]] is calculated as: A) ad + bc B) ad - bc C) ac - bd D) ab - cd Answer: B Explanation: The determinant of a 2×2 matrix is ad - bc. Question 47. Gaussian elimination is used in linear algebra for: A) Diagonalization B) Solving linear systems C) Finding eigenvalues D) Computing matrix transpose Answer: B Explanation: Gaussian elimination reduces a matrix to row-echelon form to solve systems of linear equations. Question 48. The eigenvalues of a matrix are the roots of which polynomial? A) Characteristic polynomial det(A - λI)

Explanation: The sign bit determines whether the number is positive (0) or negative (1). Question 52. Which component of a CPU executes instructions and performs calculations? A) Control unit B) ALU C) Registers D) Cache Answer: B Explanation: The Arithmetic Logic Unit (ALU) performs arithmetic and logical operations. Question 53. Instruction set architectures differ primarily in: A) Instruction formats and addressing modes B) Hardware design C) Programming languages supported D) Operating system compatibility Answer: A Explanation: Instruction set architectures specify instruction formats, opcodes, and addressing modes. Question 54. Which programming paradigm emphasizes objects and classes? A) Procedural programming B) Functional programming C) Object-oriented programming D) Logic programming Answer: C Explanation: OOP centers around objects, classes, inheritance, encapsulation, and polymorphism. Question 55. Encapsulation in OOP helps to: A) Promote code reuse B) Hide internal object details

C) Enable polymorphism D) Allow multiple inheritance Answer: B Explanation: Encapsulation hides internal state, exposing only necessary interfaces for interaction. Question 56. Which logic gate outputs true only when exactly one input is true? A) AND B) OR C) XOR D) NOR Answer: C Explanation: XOR outputs true only when an odd number of inputs are true, i.e., exactly one in the case of two inputs. Question 57. Which circuit component performs binary subtraction? A) Adder B) Subtractor C) Multiplier D) Divider Answer: B Explanation: Subtractors perform binary subtraction, often built from adders with two's complement. Question 58. A flip-flop that toggles its state on each clock pulse is called: A) D flip-flop B) T flip-flop C) JK flip-flop D) SR flip-flop Answer: B Explanation: T flip-flops toggle their state with each clock cycle.

B) Data hazards C) Control hazards D) Timing hazards Answer: A Explanation: Structural hazards occur when hardware resources are insufficient to support all concurrent pipeline operations, causing stalls. Question 62. In RISC architectures, instructions are typically designed to be: A) Complex and multi-cycle B) Simple and single-cycle C) Variable length D) Dependent on multiple addressing modes Answer: B Explanation: RISC architectures emphasize simple, fixed-length instructions that execute within a single cycle for efficiency. Question 63. Encapsulation in object-oriented programming primarily helps to: A) Allow multiple inheritance B) Hide internal data details C) Enable procedural programming D) Increase coupling Answer: B Explanation: Encapsulation hides internal object details, exposing only necessary interfaces, which promotes modularity and security. Question 64. Which logic gate performs the operation: output is true only when inputs are different? A) AND B) OR C) XOR D) NOR

Answer: C Explanation: XOR (exclusive OR) outputs true only when the inputs differ. Question 65. An adder circuit that can perform both addition and subtraction by changing control inputs is called: A) Half adder B) Full adder C) Subtractor D) Arithmetic unit Answer: D Explanation: An arithmetic unit can perform addition and subtraction using adder circuits with control signals like carry-in or borrow. Question 66. A flip-flop that changes state on the falling edge of the clock is called: A) D flip-flop B) T flip-flop C) Edge-triggered flip-flop D) Negative-edge flip-flop Answer: D Explanation: Negative-edge flip-flops change state on the falling (negative) edge of the clock signal. Question 67. In IEEE 754 floating-point standard, the exponent is stored with: A) Bias B) Sign bit only C) No bias D) As a two's complement number Answer: A Explanation: The exponent in IEEE 754 is stored with a bias (e.g., 127 for single precision) to represent both positive and negative exponents.