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

MBA Python Sample

The document is a sample mid-term test paper for a Python for Data Science course, specifically for Business Analytics students. It includes one-mark, two-mark, and five-mark questions covering various topics such as Python syntax, semantics, loops, conditional statements, user-defined functions, and NumPy. The questions aim to assess students' understanding of fundamental Python programming concepts and their applications.

Uploaded by

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

MBA Python Sample

The document is a sample mid-term test paper for a Python for Data Science course, specifically for Business Analytics students. It includes one-mark, two-mark, and five-mark questions covering various topics such as Python syntax, semantics, loops, conditional statements, user-defined functions, and NumPy. The questions aim to assess students' understanding of fundamental Python programming concepts and their applications.

Uploaded by

rahulpanula
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SAMPLE MID TERM TEST PAPER – PYTHON FOR DATA SCIENCE (UNIT 1)

(BCA – Business Analytics)

One Mark Questions

1. Define Python syntax.

2. What is semantics in Python programming?

3. Define iterator in Python.

4. What is a user-defined function?

5. What is indentation in Python?

6. Define loop in Python.

7. What is a conditional statement?

8. What is NumPy?

9. Write one feature of Python language.

10. What is a for loop?

11. Define while loop.

12. What is a function parameter?

13. What is an interpreter in Python?

14. Define variable in Python.

15. What is the use of pass statement?

16. What is an iterable object?

17. Define Python programming semantics.

18. What is the purpose of return statement?

19. What is a built-in function?

20. Define Python programming language.

Two Mark Questions


1. Explain syntax and semantics of Python programming with examples.

2. Write a Python program using if-else to check whether a number is even or odd.

3. Differentiate between for loop and while loop (any two points).

4. Write a short program to print numbers from 1 to 10 using a for loop.

5. Explain conditional statements in Python with a simple example.

6. Write a Python program to find the sum of first N natural numbers.

7. Describe iterators in Python with a small example.

8. Write a short note on indentation in Python programming.

9. Write a Python program using while loop to print even numbers from 1 to 20.

10. Explain user-defined functions with syntax and one example.

11. Write a program to create and call a simple function in Python.

12. Explain break and continue statements with examples.

13. Write a short program to check eligibility for voting using if statement.

14. Explain the concept of iterable and iterator in brief.

15. Write a Python program to demonstrate conditional statements (if-elif-else).

16. Describe the basic structure of a Python program.

Five Mark Questions

1. Explain the basic structure of a Python program and execution process with examples.
2. Explain Introduction to Python including:
o Syntax of Python
o Semantics of Python programming
o Features of Python with suitable examples

3. Describe loops and iterators in Python. Explain for loop, while loop, and iterator concept
with suitable examples.
4. Explain conditional statements in Python in detail. Discuss if, elif, and else statements
with example programs

5. Explain user-defined functions in Python with syntax, parameters, return statement, and
advantages.

6. Explain NumPy and its role in Python for Data Science with suitable examples.

7. Explain user-defined functions in Python with syntax, examples, and advantages.

8. Explain control flow statements and program flow in Python with examples.

You might also like