Q: An interpreter:
A: d) Translates a program one statement at a time.
Q: Low level programming languages:
A: b) Are closer to machine code.
Q: Which of the following is a valid variable name in Python?
A: b) John123
Q: Default value of an argument for a function must be provided:
A: a) At the time of defining the function.
Q: The four Vs associated with Big Data are:
A: a) Volume, Variety, Velocity, Veracity.
Q: Which one is used to forecast future trends?
A: c) Both a and b (Business intelligence and Data Science).
Q: Exploratory Data Analysis (EDA) excludes:
A: d) Data scrubbing.
Q: Which is not an application of Data Science?
A: d) Augmented reality (AR).
Q: List comprehension example:
A: b) List comprehension.
Q: A frozenset can contain:
A: b) Only immutable datatypes.
Q: __init__ function is termed as a:
A: a) Constructor.
Q: An instance of a class is called a/an:
A: c) Object.
Q: .pyc files execute faster because:
A: b) Python will load the byte code directly and skip the compilation.
Q: How many objects will be created for 'S = 500 V = S'?
A: b) 1 (both variables point to the same object).
Q: Use of list comprehensions:
A: a) Is recommended.
Q: Output of 'You got {correct_answers / questions :.2%} correct!':
A: c) You got 76.67% correct.
Q: Fancy indexing in NumPy refers to:
A: c) Fancy indexing.
Q: Shape of y in 'y = np.arange(3)':
A: c) (3,)
Q: Shape after broadcasting 'z = x + y':
A: c) (2, 3)
Q: Pandas 'obj.describe().freq' output:
A: b) 3.
Q: Output of 'df.sum()' where one value is NaN:
A: a) Col1 5.1
Q: Pandas name derivation:
A: a) Panel data.
Q: NumPy abbreviation:
A: b) Numeric Python.
Q: Universal functions in NumPy include:
A: d) All of the other choices.
Q: Naming rules for R objects:
A: d) All of the above are rules.
Q: Rprof() function is used to:
A: c) Determine where a program spends most of its execution time.
Q: Output of 'as.logical(1)' in R:
A: a) TRUE.
Q: R searches for objects in:
A: b) Current active environment.
Q: Output of 'typeof(v1)':
A: a) Character.
Q: Invalid assignment in R:
A: d) None of the other choices.
Q: Output of 'sqrt(-45)':
A: c) NaN.
Q: Output of 'x + y' with NA values:
A: b) 9 NA 6 11 2.