MC questions
Part 3: Multiple Choice Type B (only one correct!) For each of the following questions/statements, decide which of the possible responses is correct. NOTE: For each question only ONE of the possible responses is correct. Select ONLY ONE of the response statements per question! 1. What is the binary value 10001001 in hexadecimal value? A) 8A B) 88 C) 89 D) 98
Part 1: TRUE/FALSE Questions
For each of the following statements, decide whether the statement is TRUE (T) or FALSE (F).
1. 1GB = 1000 x 1000 x 1000 x 16 bits
Part 2: Multiple Choice Type A
For each of the following questions/statements, decide which of the possible responses are correct. NOTE:
Either ONE OR SEVERAL of the response statements can be correct. In order to get a point, all correct
response statements need to be marked!
1. In csv files, rows of data are indicated by new lines. Therefore. . .
A) Computers recognize the end of the line because each line contains the same amount of characters
B) A special character marks the end of a line. This is why a CSV-parser recognizes when a line ends.
C) The underlying binary code contains white spaces whenever an end of line occurs
D) CSV files can only be opened in spreadsheet software like Excel.
Part 3: Multiple Choice Type B (only one correct!)
For each of the following questions/statements, decide which of the possible responses is correct. NOTE: For
each question only ONE of the possible responses is correct. Select ONLY ONE of the response statements
per question!
1. Look at the following line of code. Which of the four statements about the code is correct?
<html><head><title>alpha</title></head><head><body>beta</body></head></html>
A) The <title> tag should be placed in between the <body> tags in order to make this code a valid HTML
document
B) ‘alpha’ and ‘beta’ are HTML-tag attributes
C) The code represents a basically correctly specified HTML-document
D) All tags occurring in the code are valid HTML tags
Mock Exam Questions Part 1: TRUE/FALSE Questions For each of the following statements, decide whether the statement is TRUE (T) or FALSE (F). 1. for-loops are typically used in a situation where a sequence of commands needs to be executed for a well-known number of times.
Part 3: Multiple Choice Type B (only one correct!) For each of the following questions/statements, decide which of the possible responses is correct. NOTE: For each question only ONE of the possible responses is correct. Select ONLY ONE of the response statements per question! 1. The following R code was executed on the command line and the corresponding error occurred. read_csv("data/file.csv") Error: 'data/file.csv' does not exist in current working directory ('/home/user/my_projects'). Which of the following statements is correct in this context (assuming file.csv actually is stored somewhere on this computer‘s harddrive)? A) file.csv is generally not a valid file name. B) read_csv() fails to parse file.csv because the wrong column delimiter is used (commas). C) Given the current working directory of this R session, the relative path “data/file.csv” is wrong and read_csv() therefore does not find the file. D) read_csv() is not the right R function to import file.csv.
1. After executing the follwing lines of R code, which value is stored in a[3]? a <- c(1:3) a <- a*3 A) 1:3 B) 3 C) 9 D) 27
Part 1: TRUE/FALSE Questions
For each of the following statements, decide whether the statement is TRUE (T) or FALSE (F).
1. The following line of R code will return "bnn".
str_split(“banana”, pattern= “a”)
Part 2: Multiple Choice Type A
For each of the following questions/statements, decide which of the possible responses are correct. NOTE:
Either ONE OR SEVERAL of the response statements can be correct. In order to get a point, all correct
response statements need to be marked!
1. Regarding the data semantics (vocabulary used to describe data) introduced in this course,
which of the following statements is correct?
A) An observation contains all values measured on the same unit (e.g., a person).
B) A variable contains all values that measure the same underlying attribute across units/observations.
C) Datasets typically contain more variables than values.
D) Every observation belongs to a value and a variable.
Part 3: Multiple Choice Type B (only one correct!)
For each of the following questions/statements, decide which of the possible responses is correct. NOTE: For
each question only ONE of the possible responses is correct. Select ONLY ONE of the response statements
per question!
1. Which of the following statements about ‚tidy‘ data is correct?
A) Datasets in wide format are generally not considered ‚tidy‘.
B) Data stored in csv-format is generally referred to as ‚tidy data‘.
C) tibbles can only contain tidy data.
D) When a csv-file is imported with read_csv(), the function issues a warning if the data imported is not
tidy.
Comments
Post a Comment