Data Collection And Preprocessing — Part 2 MCQs with Explanations
Practice high-yield Computer Science & IT MCQs on Data Collection And Preprocessing — Part 2 with worked academic solutions for PPSC, FPSC, CSS, PMS, NTS.
Questions
40
Difficulty Level
Exam-Level
Target Exams
PPSC, FPSC, CSS...
Estimated Time
48 mins
Exam-Level PPSC FPSC CSS PMS NTS
Verified for Commission Syllabus • Oct 14, 2026
40
Verified Practice Questions
Interactive test mode with detailed academic worked solutions
Live Progress|0/40 answered
✓0 correct
✗0 wrong
0% score
🎉 Set complete! All 40 questions answered.
Question 1 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
In data preprocessing, what is the term for the process of handling missing data by filling in the missing values with estimates?
Correct Answer: Option A — Data Imputation
Detailed Academic Explanation:
Data Imputation is the correct answer to “In data preprocessing, what is the term for the process of handling missing data by filling in the missing values with estimates”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 2 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following request can be issued from httr package?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Which of the following request can be issued from httr package”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 3 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package is used for reading HTML and XML data?
Correct Answer: Option A — httr
Detailed Academic Explanation:
httr is the correct answer to “Which of the following package is used for reading HTML and XML data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 4 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is used for loading flat files?
Correct Answer: Option C — read.table
Detailed Academic Explanation:
read.table is the correct answer to “Which of the following function is used for loading flat files”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 5 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package is used for tidy data?
Correct Answer: Option A — tidyr
Detailed Academic Explanation:
tidyr is the correct answer to “Which of the following package is used for tidy data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 6 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is used for searching text strings by means of regular expression?
Correct Answer: Option B — grepl
Detailed Academic Explanation:
grepl is the correct answer to “Which of the following function is used for searching text strings by means of regular expression”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 7 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is used to read data off the webpages?
Correct Answer: Option B — read.Lines
Detailed Academic Explanation:
read.Lines is the correct answer to “Which of the following function is used to read data off the webpages”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 8 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is used for fixing character vectors?
Correct Answer: Option A — tolower
Detailed Academic Explanation:
tolower is the correct answer to “Which of the following function is used for fixing character vectors”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 9 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function programmatically extract parts of XML file?
Correct Answer: Option A — XmlSApply
Detailed Academic Explanation:
XmlSApply is the correct answer to “Which of the following function programmatically extract parts of XML file”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 10 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following signs are used to indicate repetition?
Correct Answer: Option B — *
Detailed Academic Explanation:
* is the correct answer to “Which of the following signs are used to indicate repetition”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 11 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package is used to connect MySQL RDBMS with R?
Correct Answer: Option A — RMySQL vignette
Detailed Academic Explanation:
RMySQL vignette is the correct answer to “Which of the following package is used to connect MySQL RDBMS with R”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 12 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is good for the automatic splitting of names?
Correct Answer: Option B — strsplit
Detailed Academic Explanation:
strsplit is the correct answer to “Which of the following function is good for the automatic splitting of names”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 13 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which type of data is generated by POS terminal in a busy supermarket each day?
Correct Answer: Option A — Source
Detailed Academic Explanation:
Source is the correct answer to “Which type of data is generated by POS terminal in a busy supermarket each day”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 14 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Each observation forms a column in tidy data.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “Each observation forms a column in tidy data.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 15 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is used to extract data from HTML code of websites?
Correct Answer: Option A — Webscraping
Detailed Academic Explanation:
Webscraping is the correct answer to “Which of the following is used to extract data from HTML code of websites”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 16 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following block information is odd man out?
Correct Answer: Option B — Raw data
Detailed Academic Explanation:
Raw data is the correct answer to “Which of the following block information is odd man out”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 17 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
httr package does not work well with facebook and twitter API.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “httr package does not work well with facebook and twitter API.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 18 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following data is put into a formula to produce commonly accepted results?
Correct Answer: Option B — Processed
Detailed Academic Explanation:
Processed is the correct answer to “Which of the following data is put into a formula to produce commonly accepted results”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 19 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
mutate function is used for casting as multi dimensional arrays.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “mutate function is used for casting as multi dimensional arrays.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 20 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is used for specifying character class with metacharacter?
Correct Answer: Option A — []
Detailed Academic Explanation:
[] is the correct answer to “Which of the following is used for specifying character class with metacharacter”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 21 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Regular expressions can be thought of as a combination of literals and metacharacters.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “Regular expressions can be thought of as a combination of literals and metacharacters.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 22 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is an example of tidy data?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
all of the mentioned is the correct answer to “Which of the following is an example of tidy data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 23 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following will set the character that represents missing value?
Correct Answer: Option B — na.strings
Detailed Academic Explanation:
na.strings is the correct answer to “Which of the following will set the character that represents missing value”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 24 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following can be used to view all the tables in memory?
Correct Answer: Option A — tables
Detailed Academic Explanation:
tables is the correct answer to “Which of the following can be used to view all the tables in memory”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 25 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is the most common problem with messy data?
Correct Answer: Option D — All of the mentioned
Detailed Academic Explanation:
All of the mentioned is the correct answer to “Which of the following is the most common problem with messy data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 26 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Following figure represents correct sequence of steps in performing data analysis.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “Following figure represents correct sequence of steps in performing data analysis.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 27 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
tidyr is a reframing of . . . . . . . . designed to accompany the tidy data framework.
Correct Answer: Option C — reshape2
Detailed Academic Explanation:
reshape2 is the correct answer to “tidyr is a reframing of . . . . . . . . designed to accompany the tidy data framework.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 28 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Strange binary file generated from machines is an example of tidy data.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “Strange binary file generated from machines is an example of tidy data.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 29 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package loads data from SPSS?
Correct Answer: Option A — read.spss(SPSS)
Detailed Academic Explanation:
read.spss(SPSS) is the correct answer to “Which of the following package loads data from SPSS”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 30 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Processing data includes subsetting, formatting and merging only.
Correct Answer: Option B — False
Detailed Academic Explanation:
False is the correct answer to “Processing data includes subsetting, formatting and merging only.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 31 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function gives information about top level data?
Correct Answer: Option A — head
Detailed Academic Explanation:
head is the correct answer to “Which of the following function gives information about top level data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 32 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is an important parameter of read.table function?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
all of the mentioned is the correct answer to “Which of the following is an important parameter of read.table function”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 33 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Data that summarize all observations in a category are called . . . . . . . . data.
Correct Answer: Option B — summarized
Detailed Academic Explanation:
summarized is the correct answer to “Data that summarize all observations in a category are called . . . . . . . . data.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 34 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following is an example of raw data?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
all of the mentioned is the correct answer to “Which of the following is an example of raw data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 35 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package is used for reading GIS data?
Correct Answer: Option D — all of the mentioned
Detailed Academic Explanation:
all of the mentioned is the correct answer to “Which of the following package is used for reading GIS data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 36 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following package is used for reading excel data?
Correct Answer: Option A — xlsx
Detailed Academic Explanation:
xlsx is the correct answer to “Which of the following package is used for reading excel data”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 37 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Raw data in the real-world is tidy and properly formatted.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “Raw data in the real-world is tidy and properly formatted.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 38 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following function is used for casting data frames?
Correct Answer: Option A — dcast
Detailed Academic Explanation:
dcast is the correct answer to “Which of the following function is used for casting data frames”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 39 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Extracting XML is the basis for most web scraping.
Correct Answer: Option A — True
Detailed Academic Explanation:
True is the correct answer to “Extracting XML is the basis for most web scraping.”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
Question 40 of 40
★ PPSC
★ FPSC
★ PPSC
★ FPSC
Which of the following join is by default used in plyr package?
Correct Answer: Option A — left
Detailed Academic Explanation:
left is the correct answer to “Which of the following join is by default used in plyr package”. This question is standard in competitive examination syllabi for Data Collection And Preprocessing.
💡Key Conceptual Anchor:Data Collection And Preprocessing
✓Link copied to clipboard
Continue Your Practice
Advanced Mapreduce Concepts — Part 1
Master the next curriculum module with 40 exam-standard MCQs.
In competitive commission exams (FPSC, PPSC, KPPSC, SPSC, CSS, PMS), questions are frequently phrased with distractor options designed to catch rote learners. Whenever you answer an MCQ, read the Detailed Academic Explanation and Conceptual Anchor to understand why the remaining options are incorrect.