Docsity

Certificate in Computation and Data Enabled Science Engineering Practice Exam, Exams of Technology

Toggle sidebar
bg1
Certificate in Computation and Data Enabled
Science Engineering Practice Exam
**Question 1.** Which of the following statements about eigenvalues of a real
matrix is correct?
A) All eigenvalues must be real.
B) Eigenvalues are always positive.
C) Complex eigenvalues occur in conjugate pairs.
D) Eigenvalues are unchanged by adding a scalar to the matrix.
Answer: C
Explanation: For a real matrix, any non‑real eigenvalues appear as complex
conjugate pairs because the characteristic polynomial has real coefficients.
**Question 2.** In the finite difference method for solving a second‑order ODE,
the central difference approximation for \(y''(x_i)\) is:
A) \(\frac{y_{i+1}-y_i}{h}\)
B) \(\frac{y_{i+1}-2y_i+y_{i-1}}{h^2}\)
C) \(\frac{y_{i+1}+y_{i-1}}{2h}\)
D) \(\frac{y_{i+2}-2y_i+y_{i-2}}{4h^2}\)
Answer: B
Explanation: The second‑order central difference uses the points \(i-1\), \(i\), and
\(i+1\) and gives \((y_{i+1}-2y_i+y_{i-1})/h^2\).
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
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Certificate in Computation and Data Enabled Science Engineering Practice Exam and more Exams Technology in PDF only on Docsity!

Science Engineering Practice Exam

Question 1. Which of the following statements about eigenvalues of a real matrix is correct? A) All eigenvalues must be real. B) Eigenvalues are always positive. C) Complex eigenvalues occur in conjugate pairs. D) Eigenvalues are unchanged by adding a scalar to the matrix. Answer: C Explanation: For a real matrix, any non‑real eigenvalues appear as complex conjugate pairs because the characteristic polynomial has real coefficients. Question 2. In the finite difference method for solving a second‑order ODE, the central difference approximation for (y''(x_i)) is: A) (\frac{y_{i+1}-y_i}{h}) B) (\frac{y_{i+1}-2y_i+y_{i-1}}{h^2}) C) (\frac{y_{i+1}+y_{i-1}}{2h}) D) (\frac{y_{i+2}-2y_i+y_{i-2}}{4h^2}) Answer: B Explanation: The second‑order central difference uses the points (i- 1 ), (i), and (i+1) and gives ((y_{i+1}-2y_i+y_{i-1})/h^2).

Science Engineering Practice Exam

Question 3. Which optimization algorithm guarantees quadratic convergence near a solution for twice‑differentiable functions? A) Gradient descent B) Newton’s method C) Steepest descent with line search D) Simplex method Answer: B Explanation: Newton’s method uses second‑order information (the Hessian) and, under appropriate conditions, converges quadratically. Question 4. The time complexity of binary search on a sorted array of size (n) is: A) (O(n)) B) (O(\log n)) C) (O(n \log n)) D) (O(1)) Answer: B Explanation: Binary search repeatedly halves the search interval, leading to logarithmic time.

Science Engineering Practice Exam

Question 7. Dijkstra’s algorithm cannot be applied correctly to graphs that contain: A) Negative edge weights B) Positive edge weights only C) Undirected edges D) Weighted edges with zero weight Answer: A Explanation: Dijkstra assumes non‑negative weights; negative weights can cause incorrect shortest‑path calculations. Question 8. The Central Limit Theorem states that the sampling distribution of the sample mean approaches a normal distribution as the sample size increases, regardless of the original distribution, provided that: A) The original distribution is uniform. B) The original distribution has finite variance. C) The sample size is less than 30. D) The original distribution is already normal. Answer: B Explanation: Finite variance is required for the CLT to hold; the original shape becomes irrelevant as (n) grows.

Science Engineering Practice Exam

Question 9. In hypothesis testing, a Type II error occurs when: A) The null hypothesis is incorrectly rejected. B) The null hypothesis is incorrectly not rejected. C) The alternative hypothesis is true and accepted. D) The test statistic exceeds the critical value. Answer: B Explanation: A Type II error (false negative) fails to reject a false null hypothesis. Question 10. Which of the following distributions is discrete? A) Normal distribution B) Exponential distribution C) Poisson distribution D) Uniform continuous distribution Answer: C Explanation: The Poisson distribution models the count of events in a fixed interval and is discrete.

Science Engineering Practice Exam

Question 13. Which regularization technique adds a penalty proportional to the absolute value of coefficients? A) Ridge (L2) B) Lasso (L1) C) Elastic Net D) Dropout Answer: B Explanation: Lasso uses an L1 penalty, encouraging sparsity by shrinking some coefficients exactly to zero. Question 14. In k‑means clustering, the algorithm can get stuck in a local optimum because: A) It uses hierarchical merging. B) It initializes centroids randomly. C) It computes Euclidean distances. D) It always finds the global optimum. Answer: B Explanation: Random initialization may lead to different final clusterings; the algorithm converges to a local minimum of the within‑cluster sum of squares.

Science Engineering Practice Exam

Question 15. Principal Component Analysis (PCA) seeks directions that maximize: A) The sum of squared distances between points. B) The variance of the projected data. C) The correlation between variables. D) The number of components. Answer: B Explanation: PCA finds orthogonal axes (principal components) that capture the maximum variance of the data. Question 16. Which activation function suffers from the “vanishing gradient” problem for large positive inputs? A) ReLU B) Sigmoid C) Leaky ReLU D) Softmax Answer: B Explanation: The sigmoid’s derivative approaches zero as the input magnitude grows, causing gradients to vanish during backpropagation.

Science Engineering Practice Exam

A) Gather data from all processes to the root. B) Scatter data from the root to all processes. C) Broadcast a message from one process to all others. D) Perform a reduction operation. Answer: C Explanation: MPI_Bcast sends the same data from the calling process to all processes in the communicator. Question 20. OpenMP parallel regions are defined using which pragma? A) #pragma omp parallel for B) #pragma omp parallel C) #pragma omp task D) #pragma omp barrier Answer: B Explanation: #pragma omp parallel creates a team of threads that execute the enclosed block concurrently. Question 21. In Spark, the transformation that shuffles data across the cluster is:

Science Engineering Practice Exam

A) map B) filter C) reduceByKey D) flatMap Answer: C Explanation: reduceByKey requires data with the same key to be brought together, causing a shuffle operation. Question 22. Cache line false sharing occurs when: A) Two threads read the same memory location simultaneously. B) Two threads write to different variables that reside on the same cache line. C) The cache is larger than the working set. D) The processor uses a write‑through policy. Answer: B Explanation: False sharing degrades performance because modifications to different variables on the same cache line cause unnecessary coherence traffic. Question 23. CUDA’s __global__ qualifier indicates that a function: A) Runs on the host CPU only.

Science Engineering Practice Exam

B) Deployment C) ConfigMap D) PersistentVolume Answer: B Explanation: A Deployment manages replica sets and ensures the specified number of pod replicas are running. Question 26. In relational databases, the process of converting a table to reduce redundancy is called: A) Denormalization B) Indexing C) Normalization D) Partitioning Answer: C Explanation: Normalization organizes data into multiple related tables to eliminate redundancy and update anomalies. Question 27. A NoSQL document store like MongoDB stores data primarily as: A) Key‑value pairs in a flat file.

Science Engineering Practice Exam

B) Rows in tables with fixed schemas. C) JSON‑like documents. D) Graph edges and vertices. Answer: C Explanation: Document stores keep data as semi‑structured documents (e.g., BSON/JSON), allowing flexible schemas. Question 28. In HDFS, the default block size is typically: A) 64 KB B) 128 MB C) 1 GB D) 4 KB Answer: B Explanation: Modern Hadoop distributions set the default HDFS block size to 128 MB (or larger) to reduce metadata overhead. Question 29. When handling missing numeric data with imputation, the most robust simple method is: A) Replacing with zero.

Science Engineering Practice Exam

C) Transforming data before extraction. D) Not using a staging area. Answer: B Explanation: ELT loads raw data into the destination (often a data lake) and performs transformations there, whereas ETL transforms before loading. Question 32. Apache Airflow’s DAG stands for: A) Data Aggregation Graph B) Directed Acyclic Graph C) Distributed Access Grid D) Dataflow Automation Guide Answer: B Explanation: Airflow schedules tasks as nodes in a Directed Acyclic Graph, defining dependencies between jobs. Question 33. In stream processing, exactly‑once semantics ensures that: A) Each message is processed at least once. B) Each message may be processed multiple times. C) Each message is processed precisely once, despite failures.

Science Engineering Practice Exam

D) Messages are processed only after a fixed delay. Answer: C Explanation: Exactly‑once guarantees no duplication or loss, even when failures occur, by using transactional mechanisms. Question 34. The bias‑variance trade‑off describes the relationship between: A) Model complexity and training time. B) Training error and test error. C) Systematic error (bias) and error due to sensitivity to data (variance). D) Overfitting and underfitting only. Answer: C Explanation: Increasing model complexity reduces bias but raises variance; optimal performance balances the two. Question 35. K‑fold cross‑validation with (k=5) divides the dataset into: A) 5 equal parts, using each part once as validation while training on the remaining 4. B) 5 random subsets of varying size. C) 5 nested validation sets.

Science Engineering Practice Exam

Answer: B Explanation: GDPR grants data subjects the right to have their personal data erased upon request, subject to certain conditions. Question 38. In version control with Git, the command git rebase is primarily used to: A) Merge two branches creating a merge commit. B) Apply commits from one branch onto another, rewriting history. C) Delete a branch permanently. D) Stage changes for commit. Answer: B Explanation: git rebase moves a series of commits to a new base, creating a linear history. Question 39. The computational complexity of matrix multiplication using the naive algorithm is: A) (O(n)) B) (O(n \log n)) C) (O(n^2)) D) (O(n^3))

Science Engineering Practice Exam

Answer: D Explanation: Multiplying two (n \times n) matrices with the standard triple‑loop algorithm requires (n^3) scalar multiplications. Question 40. The Singular Value Decomposition (SVD) of a matrix (A) expresses it as: A) (A = U \Sigma V^T) where (U) and (V) are orthogonal and (\Sigma) is diagonal. B) (A = L U) where (L) is lower triangular. C) (A = Q R) where (Q) is orthogonal. D) (A = P D P^{-1}) where (D) is diagonal. Answer: A Explanation: SVD factorizes any (m \times n) matrix into orthogonal matrices (U) and (V) and a diagonal matrix (\Sigma) of singular values. Question 41. In numerical integration, the trapezoidal rule approximates the integral by: A) Summing areas of rectangles. B) Using parabolic arcs. C) Averaging the function values at the endpoints of each subinterval.