0% found this document useful (0 votes)
12 views3 pages

Python Prac Answers Mcqs

The document contains a series of questions and answers related to programming concepts, specifically focusing on Python, R, and data science principles. Key topics include variable naming, function arguments, Big Data characteristics, and operations in NumPy and Pandas. It also addresses concepts like list comprehensions, object-oriented programming, and exploratory data analysis.

Uploaded by

Uddipto Jana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views3 pages

Python Prac Answers Mcqs

The document contains a series of questions and answers related to programming concepts, specifically focusing on Python, R, and data science principles. Key topics include variable naming, function arguments, Big Data characteristics, and operations in NumPy and Pandas. It also addresses concepts like list comprehensions, object-oriented programming, and exploratory data analysis.

Uploaded by

Uddipto Jana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy