Cs411 mid term mcqs file, Cheat Sheet of Computer Science

2024 my professor dabid peof avfieb sjfvfbd sksksbsbd. Content contain mcqs into and it si dhrb d d

Typology: Cheat Sheet

2024/2025

Uploaded on 12/11/2025

imran-ul-hassan
imran-ul-hassan 🇵🇰

1 document

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cs441 Quizzes
1. What is the minimum number of DataNodes required to maintain a
replication factor of 3 in a healthy HDFS cluster, assuming no rack
awareness?
A) 1
B) 2
C) 3
D) A minimum of 4 to handle NameNode overhead.
2. A Hive query is executed on an external table. A user then drops the table.
What is the immediate result?
A) Both the table and the data are deleted from HDFS.
B) Only the table's metadata is deleted; the data remains in HDFS.
C) An error occurs as data cannot be deleted from an external table.
D) The data is moved to a temporary directory.
3. Which of the following is the most accurate description of how HiveQL
processes a SELECT statement?
A) It performs direct, low-latency queries on the HDFS data blocks.
B) It executes the query using a highly optimized, native SQL engine.
C) It uses a single, monolithic Java program to scan the entire dataset.
pf3
pf4
pf5

Partial preview of the text

Download Cs411 mid term mcqs file and more Cheat Sheet Computer Science in PDF only on Docsity!

Cs441 Quizzes

  1. What is the minimum number of DataNodes required to maintain a replication factor of 3 in a healthy HDFS cluster, assuming no rack awareness? A) 1 B) 2 C) 3 D) A minimum of 4 to handle NameNode overhead.
  2. A Hive query is executed on an external table. A user then drops the table. What is the immediate result? A) Both the table and the data are deleted from HDFS. B) Only the table's metadata is deleted; the data remains in HDFS. C) An error occurs as data cannot be deleted from an external table. D) The data is moved to a temporary directory.
  3. Which of the following is the most accurate description of how HiveQL processes a SELECT statement? A) It performs direct, low-latency queries on the HDFS data blocks. B) It executes the query using a highly optimized, native SQL engine. C) It uses a single, monolithic Java program to scan the entire dataset.

D) It compiles the query into a series of distributed jobs like MapReduce, Tez, or Spark.

  1. A data analyst needs to find the top 5 most-purchased products within each of a hundred different regions. Which HiveQL feature is best suited for this task? A) A simple GROUP BY and ORDER BY clause. B) A WHERE clause combined with a subquery. C) A standard JOIN with aggregation. D) A window function with PARTITION BY and RANK().
  2. What is the core limitation that prevents Hive from being used for real-time transaction processing? A) It lacks support for joins and subqueries. B) Its distributed nature makes it prone to data inconsistencies. C) Its query execution model (MapReduce) has high latency. D) It does not support standard SQL syntax.
  3. In a MapReduce job, a Combiner is often used for: A) Ensuring the final output is sorted correctly. B) Reading data from HDFS in parallel. C) Locally aggregating intermediate key-value pairs before they are sent to the Reducer. D) Merging the final outputs from multiple Reducers.
  4. Which of the following scenarios would be a major disadvantage of using HDFS? A) Storing a single 500GB video file. B) Storing 1 million small log files, each 1KB in size.

C) Hive's ACID support is designed for analytical workloads, not for real-time transactions. D) Hive's ACID support is entirely focused on fault tolerance, not consistency. 12.The OVERWRITE keyword in Hive's LOAD DATA command does which of the following? A) It appends new data to the table without affecting existing records. B) It deletes the existing data in the table and replaces it with the new data. C) It only updates records with matching primary keys. D) It creates a new table with the same name. 13.The set of all languages that are recognized by a Pushdown Automaton is closed under which of the following operations? A) Intersection B) Union C) Complement D) Set Difference 14.A language is defined by the regular expression (ab)* | (a | b)+. Which of the following is true about this language? A) It is Context-Free but not Regular. B) It is Regular and therefore Context-Free. C) It is Recursively Enumerable but not Decidable. D) It is an undecidable language. 15.What is the most significant difference between a Turing-recognizable language and a Turing-decidable language? A) The size of the language.

B) The type of grammar used to generate it. C) A decider TM is guaranteed to halt on all inputs; a recognizer TM is not. D) A recognizer TM can be simulated by a decider TM. 16.Which of the following is a key closure property that distinguishes the class of Regular Languages from Context-Free Languages? A) Closure under Union. B) Closure under Intersection. C) Closure under Concatenation. D) Closure under Kleene Star. 17.The language L={aibjck∣i,j,k≥0,and i=j=k} is: A) Regular B) Context-Free C) Decidable D) All of the above 18.A problem is considered undecidable if: A) It can be solved by a Turing Machine but only in exponential time. B) There exists a Turing Machine that can recognize all "yes" instances, but not "no" instances. C) No Turing Machine can be constructed to always halt and provide a correct "yes" or "no" answer. D) The problem can be solved by a non-deterministic Turing Machine. 19.Which of the following statements about the Chomsky Hierarchy is false? A) All regular languages are also context-free languages. B) All context-free languages are also recursive languages.