Docsity

Computational Thinking and Big Data Practice Exam, Exams of Technology

Toggle sidebar
bg1
Computational Thinking and Big Data Certificate
Practice Exam
**Question 1.** Which pillar of computational thinking involves breaking a complex problem
into smaller, manageable parts?
A) Pattern Recognition
B) Abstraction
C) Decomposition
D) Algorithm Design
Answer: C
Explanation: Decomposition is the process of dividing a problem into sub‑problems that can be
solved independently.
**Question 2.** In pattern recognition, which technique is used to create a general rule from
observed examples?
A) Induction
B) Deduction
C) Abduction
D) Recursion
Answer: A
Explanation: Induction derives broad generalizations from specific instances, a core activity in
pattern recognition.
**Question 3.** Which data structure best supports the “last‑in, first‑out” (LIFO) access
pattern?
A) Queue
B) Stack
C) Linked List
D) Hash Table
Answer: B
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

Partial preview of the text

Download Computational Thinking and Big Data Practice Exam and more Exams Technology in PDF only on Docsity!

Practice Exam

Question 1. Which pillar of computational thinking involves breaking a complex problem into smaller, manageable parts? A) Pattern Recognition B) Abstraction C) Decomposition D) Algorithm Design Answer: C Explanation: Decomposition is the process of dividing a problem into sub‑problems that can be solved independently. Question 2. In pattern recognition, which technique is used to create a general rule from observed examples? A) Induction B) Deduction C) Abduction D) Recursion Answer: A Explanation: Induction derives broad generalizations from specific instances, a core activity in pattern recognition. Question 3. Which data structure best supports the “last‑in, first‑out” (LIFO) access pattern? A) Queue B) Stack C) Linked List D) Hash Table Answer: B

Practice Exam

Explanation: A stack follows LIFO order, where the most recently added element is removed first. Question 4. What is the time‑complexity of binary search on a sorted array of n elements in the worst case? A) O(n) B) O(log n) C) O(n log n) D) O(1) Answer: B Explanation: Binary search halves the search space each step, giving logarithmic complexity. Question 5. Which Big Data “V” emphasizes the trustworthiness and accuracy of data? A) Volume B) Velocity C) Veracity D) Value Answer: C Explanation: Veracity refers to data quality, reliability, and the confidence that can be placed in it. Question 6. In Hadoop’s HDFS architecture, which component is responsible for storing the metadata and managing the namespace? A) DataNode B) NameNode C) Secondary NameNode

Practice Exam

C) Average memory usage D) Minimum number of operations Answer: B Explanation: Big O provides an asymptotic upper bound, indicating how an algorithm’s resource consumption grows with input size. Question 10. Which traversal order of a binary search tree yields the keys in ascending order? A) Pre‑order B) Post‑order C) In‑order D) Level‑order Answer: C Explanation: In‑order traversal visits left child, node, then right child, producing sorted output for BSTs. Question 11. Which stage of the data science process focuses on transforming raw data into a clean, analysis‑ready format? A) Data Acquisition B) Data Modeling C) Data Preparation D) Model Evaluation Answer: C Explanation: Data preparation (cleaning, transformation, feature engineering) readies data for modeling. Question 12. Which Spark component enables real‑time processing of data streams?

Practice Exam

A) Spark SQL B) Spark MLlib C) Spark Streaming D) Spark GraphX Answer: C Explanation: Spark Streaming processes live data streams using micro‑batch or continuous processing. Question 13. In a hash table, which technique is commonly used to resolve collisions by storing multiple items in the same bucket? A) Linear probing B) Quadratic probing C) Separate chaining D) Double hashing Answer: C Explanation: Separate chaining links all colliding entries in a list (or another structure) within the same bucket. Question 14. Which of the following best describes “abstraction” in computational thinking? A) Breaking a problem into sub‑problems B) Recognizing recurring patterns C) Removing unnecessary details to focus on essential features D) Writing detailed step‑by‑step instructions Answer: C Explanation: Abstraction filters out irrelevant information, creating a simplified representation of a system.

Practice Exam

Explanation: An adjacency list stores only existing edges, making it ideal for graphs with few edges relative to vertices. Question 18. In the MapReduce programming model, which phase is responsible for grouping all values associated with the same key? A) Map B) Shuffle C) Reduce D) Combine Answer: B Explanation: The Shuffle phase transfers and sorts intermediate key‑value pairs so that each reducer receives all values for a given key. Question 19. Which statistical measurement is appropriate for data on an ordinal scale? A) Mean B) Median C) Standard deviation D) Mode only Answer: B Explanation: Median is suitable for ordinal data because it relies on order, not on numeric distance between values. Question 20. Which algorithmic technique solves a problem by recursively breaking it into smaller sub‑problems of the same type? A) Greedy B) Divide and Conquer C) Brute Force

Practice Exam

D) Dynamic Programming Answer: B Explanation: Divide and Conquer recursively splits a problem into sub‑problems, solves each, and combines results. Question 21. In a relational database, which operation combines rows from two tables based on a related column? A) SELECT B) INSERT C) JOIN D) DELETE Answer: C Explanation: JOIN merges rows from two tables using a common attribute, enabling relational queries. Question 22. Which type of analytics aims to answer “What will happen next?” A) Descriptive B) Diagnostic C) Predictive D) Prescriptive Answer: C Explanation: Predictive analytics uses statistical models and machine learning to forecast future events. Question 23. Which of the following is NOT a typical feature of a key‑value NoSQL store? A) Fixed schema tables

Practice Exam

A) Changes in data flow rate and format over time B) The sheer size of data collections C) The speed at which data is generated D) The trustworthiness of data sources Answer: A Explanation: Variability refers to fluctuations in data velocity, structure, and semantics. Question 27. In which scenario would a greedy algorithm fail to produce an optimal solution? A) Finding the minimum spanning tree of a graph B) Solving the fractional knapsack problem C) Solving the 0/1 knapsack problem D) Merging two sorted arrays Answer: C Explanation: The 0/1 knapsack problem requires considering combinations; a greedy choice can be sub‑optimal. Question 28. Which Spark library provides high‑level APIs for machine learning pipelines? A) Spark SQL B) Spark Streaming C) GraphX D) MLlib Answer: D Explanation: MLlib offers scalable machine learning algorithms and utilities for building pipelines.

Practice Exam

Question 29. Which Big Data processing model is most suitable for iterative machine‑learning algorithms? A) Classic MapReduce B) Hadoop Streaming C) Apache Spark D) Pig Latin Answer: C Explanation: Spark’s in‑memory computation drastically reduces overhead for iterative tasks compared with disk‑based MapReduce. Question 30. Which of the following is an example of unstructured data? A) A CSV file of sales records B) A relational database table C) A collection of JPEG images D) JSON logs from a web server Answer: C Explanation: JPEG images lack a predefined schema, making them unstructured. Question 31. Which graph search algorithm uses a stack (LIFO) to keep track of vertices to explore? A) Breadth‑First Search (BFS) B) Dijkstra’s algorithm C) Depth‑First Search (DFS) D) Bellman‑Ford algorithm Answer: C

Practice Exam

C) K‑means clustering D) Logistic regression Answer: B Explanation: PCA transforms correlated variables into a smaller set of uncorrelated principal components. Question 35. Which of the following best illustrates the concept of “decomposition” in problem solving? A) Identifying common patterns in multiple datasets B) Creating a flowchart of the entire system at once C) Splitting a large data‑processing pipeline into separate stages (extract, transform, load) D) Writing a single monolithic program that does everything Answer: C Explanation: Decomposition involves breaking a complex workflow into distinct, manageable stages. Question 36. In the context of CT, which construct is used to repeat a set of instructions until a condition becomes false? A) Sequence B) Selection C) Iteration (loop) D) Recursion Answer: C Explanation: Iteration (loops such as while, for) repeats actions while a condition holds. Question 37. Which of the following is a limitation of the classic Hadoop MapReduce model?

Practice Exam

A) It cannot process data in parallel B) It stores all intermediate data on disk, causing high I/O overhead C) It only works with structured data D) It lacks fault tolerance Answer: B Explanation: Traditional MapReduce writes intermediate results to disk, slowing down tasks that could benefit from in‑memory processing. Question 38. Which type of machine‑learning algorithm is typically used for clustering unlabeled data? A) Supervised classification B) Regression C) Unsupervised clustering D) Reinforcement learning Answer: C Explanation: Unsupervised clustering groups similar instances without predefined labels. Question 39. Which of the following best describes “value” in the Big Data V’s? A) The size of the dataset B) The speed at which data is ingested C) The actionable insights derived from data D) The variety of data formats Answer: C Explanation: Value denotes the usefulness of data—its capacity to generate insights that drive decisions.

Practice Exam

Explanation: RDDs are the core immutable, partitioned data structures enabling parallel operations. Question 43. Which of the following is a key difference between a stack and a queue? A) Stacks allow random access, queues do not B) Stacks follow FIFO, queues follow LIFO C) Stacks follow LIFO, queues follow FIFO D) Both use the same access order Answer: C Explanation: Stacks are Last‑In‑First‑Out; queues are First‑In‑First‑Out. Question 44. Which of the following best describes “diagnostic analytics”? A) Summarizing what happened in the past B) Determining why something happened C) Predicting future outcomes D) Recommending actions to achieve goals Answer: B Explanation: Diagnostic analytics investigates root causes behind observed events. Question 45. Which of the following is an example of a semi‑structured data format? A) Relational table in SQL Server B) Plain text log file C) JSON document D) Binary image file Answer: C

Practice Exam

Explanation: JSON contains hierarchical data with tags but does not enforce a rigid schema, making it semi‑structured. Question 46. Which of the following statements about the “Big O” notation is FALSE? A) It describes the upper bound of an algorithm’s growth rate. B) It provides the exact number of operations performed. C) It abstracts away constant factors. D) It is used to compare algorithm efficiency. Answer: B Explanation: Big O does not give exact operation counts; it only characterizes asymptotic behavior. Question 47. In a binary search tree, what is the maximum number of nodes at depth d? A) d B) 2^d C) d + 1 D) 2^(d‑1) Answer: B Explanation: At depth d (root at depth 0), a full binary tree can have up to 2^d nodes. Question 48. Which of the following best describes the “Map” phase in MapReduce? A) It sorts the final output B) It aggregates values for each key C) It transforms input records into intermediate key‑value pairs D) It distributes tasks to worker nodes Answer: C

Practice Exam

D) Ratio Answer: B Explanation: Nominal variables represent categories without a rank (e.g., colors, gender). Question 52. Which of the following statements about “recursion” is TRUE? A) It always uses less memory than an iterative solution. B) It requires a base case to avoid infinite loops. C. It cannot be expressed in pseudocode. D. It is incompatible with divide‑and‑conquer algorithms. Answer: B Explanation: Recursion must have a terminating base case; otherwise, it would recurse indefinitely. Question 53. Which of the following is a primary reason for using NoSQL databases in Big Data environments? A) They enforce strict ACID transactions. B) They provide unlimited vertical scaling. C) They handle high‑velocity, schema‑less data efficiently. D. They require relational joins for all queries. Answer: C Explanation: NoSQL systems are designed for flexible schemas and can scale horizontally to ingest fast‑moving data. Question 54. Which of the following best describes “prescriptive analytics”? A) Summarizing historical data B) Identifying causes of past events

Practice Exam

C) Forecasting future trends D) Recommending optimal actions based on predictions Answer: D Explanation: Prescriptive analytics goes beyond prediction to suggest the best course of action. Question 55. In a directed graph, what is the term for a node that has only outgoing edges and no incoming edges? A) Sink B) Source C) Bridge D) Cycle Answer: B Explanation: A source node has in‑degree zero (only outgoing edges). Question 56. Which of the following Big Data technologies is primarily designed for stream processing? A) Hadoop MapReduce B) Apache Hive C) Apache Flink D) Apache Pig Answer: C Explanation: Apache Flink provides low‑latency, high‑throughput stream processing capabilities. Question 57. Which of the following is the most suitable data structure for implementing a priority queue? A) Array