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

Practical Assignment Question Sybca(Sci) (1)

The document outlines practical assignments for BCA students in Python Programming Laboratory, covering various topics including basic Python, strings, tuples, sets, dictionaries, and functions. Each assignment consists of multiple programming tasks aimed at enhancing students' coding skills and understanding of Python concepts. Additionally, it includes a question bank for Software Project Management, detailing project management concepts, planning tools, scheduling, tracking, and agile methodologies.

Uploaded by

sneha.pawar
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 views15 pages

Practical Assignment Question Sybca(Sci) (1)

The document outlines practical assignments for BCA students in Python Programming Laboratory, covering various topics including basic Python, strings, tuples, sets, dictionaries, and functions. Each assignment consists of multiple programming tasks aimed at enhancing students' coding skills and understanding of Python concepts. Additionally, it includes a question bank for Software Project Management, detailing project management concepts, planning tools, scheduling, tracking, and agile methodologies.

Uploaded by

sneha.pawar
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
You are on page 1/ 15

Dr. D. Y.

Patil Unitech Society’s


DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 1

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

BASIC PYTHON

Q.1

1. Write a Python Program to Calculate the Average of Numbers in a Given List.

2. Write a program which accepts 6 integer values and prints “DUPLICATES” if any of the

Values entered are duplicates otherwise it prints “ALL UNIQUE”.

3. Write a program which accepts an integer value as command line and print “Ok” if value is

between 1 to 50 (both inclusive) otherwise it prints” Out of range”

4. Write a program which finds sum of digits of a number.

5. Write a program which prints Fibonacci series of a number.

Q.2

1. Write a program which accept an integer value ‘n’ and display all prime numbers till ‘n’.

2. Write a program that accept two integer values and if both are equal then prints “SAME

identity” otherwise prints, “DIFFERENT identity”.

3. Write a program to display following pattern.

1234

123

12

4. Write a program to reverse a given number.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 2

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

PYTHON STRING

Q.1

1. Write a program to replace all occurrences of ‘a’with $ in a String. (Ex. apple then output is $pple).

2. Write a Python program to count the number of characters (character frequency) in a string.

3. Write a Python program to get a string made of the first 2 and the last 2 chars from a given a string.
If the string length is less than 2, return instead of the empty string.

4. Write a Python program to calculate the Length of a String without using a Library Function.

Q.2

1. Write a python program to check if a string is a Palindrome or Not.

2. Write a Python program to calculate the Number of Digits and Letters in a string.

3. Write a Python program to remove the characters which have odd index values of a given string.

4. Write a Python program to count the occurrences of each word in a given sentence.
Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 3

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

PYTHON TUPLE

Q.1

1. Reverse the following tuple

aTup = (10, 20, 30, 40, 50)

2. Write a Python program to create a list of tuples with the first element as the number and second

element as the square of the number.

3. Write a Python program to create a tuple with numbers and print one item.

4. Write a Python program to unpack a tuple in several variables.

5. Write a Python program to add an item in a tuple.

Q.2

1. Write a Python program to convert a tuple to a string.

2. Sort the tuple - Tuple=(2, 4, 6, 1, 4, 7.8, 2.7)

3. Write a Python program to get the 5th element from front and 5th element from last of a tuple.

4. Write a Python program to find the repeated items of a tuple.

5. Write a Python program to check whether an element exists within a tuple.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 4

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

PYTHON SET

Q.1

1. What is the output of following program:

sets = {1, 2, 3, 4, 4}

print(sets)

2. Write a python program to remove and return an arbitrary set element. Raise KeyError if

the set is empty

3. Write a Python program to do iteration over sets.

4. Write a Python program to add and remove operation on set.

Q.2

1. Write a Python program to accept the strings which contains all vowels .

2. Write a Python program to create a union of sets.

3. Write a Python program to create an intersection of sets.

4. Write a Python program to find maximum and the minimum value in a set.

5. Write a Python program to create set difference and a symmetric difference

6. Write a Python program to find the length of a set.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 5

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

PYTHON DICTIONARY

Q.1

1. Write a Python script to access the value of a key from a dictionary.

2. Write a Python program to iterate over dictionaries using for loops.

3. Write a Python program to sum all the items in a dictionary.

Sample Dictionary: my_dict={'data1':100,'data2':-54,'data3':247}

Expected Result: 293

4. Write a Python program to remove a key from a dictionary.

Sample Dictionary: myDict={'a':1,'b':2,'c':3,'d':4}

Sample Output:

{'c': 3, 'b': 2, 'd': 4, 'a': 1}

{'c': 3, 'b': 2, 'd': 4}

Q.2

1. Write a Python program to sort a dictionary by key.

2. Write a Python program to combine two dictionary adding values for common keys.

3. Write a Python script to generate and print a dictionary that contains a number (Between 1 and n)
in the form (x, x*x).

4. Write a Python program to create a dictionary from a string.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Practical Assignment - 6

Class: BCA(Science) Semester-IV Date : / / 2025

Subject:-BCA246 Python Programming Laboratory

PYTHON FUNCTIONS

Q.1

1. Write an anonymous function to calculate area of square.

2. Write a Python function to multiply all the numbers in a list.

3. Write a Python function to check whether a number is in a given range.

4. Create a function showEmployee() in such a way that it should accept employee name, and it’s
salary and display both, and if the salary is missing in function call it should show it as 9000.

Q.2

1. Write a Python function that takes a number as a parameter and check the number is prime or not.

2. Write a generator function that reverses a given string.

3. Write a recursive function to calculate the sum of numbers from 0 to 10.

4. Write a Python program to filter a list of integers using Lambda


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Question Bank
Class: BCA(Science) Semester-IV

Subject:-BCA246 Python Programming Laboratory

Unit I: Introduction to Python Scripting

Why is scripting useful in computational science?

What are productive pairs of programming languages?

What is the importance of flexible function interfaces and interactive computing in Python?

Explain the concept of creating code at runtime in Python.

What is the role of nested heterogeneous data structures in Python?

Discuss GUI programming in Python.

What is mixed language programming in Python?

When should you choose a dynamically typed language?

Why is Python preferred as a scripting language? Is it a script or a program?

Explain some real-world applications of Python.

Viva Topics:

 Scripting in computational science


 Dynamic typing in programming languages
 Python as a scripting language vs. a programming language
 Applications of Python in real-world scenarios
Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Unit II: Basic Python

Explain Python identifiers and reserved words.

Discuss Python's indentation and how it affects the structure of code.

Explain multi-line statements in Python with examples.

What is the role of the print() and input() functions in Python?

How are command-line arguments processed in Python?

Describe the standard data types in Python (None, Boolean, numbers).

Explain how Python handles string data types and operations.

What is type conversion in Python? Explain with examples.

Discuss Python's basic operators (Arithmetic, Comparison, Assignment, Bitwise, Logical).

What are Python’s membership operators (in and not in)? Provide examples.

What are Python's identity operators (is and is not)?

Explain operator precedence in Python with examples.

Discuss Python control statements like if, else, and elif.

Explain Python loops (for, while) and loop control statements (break, continue, pass).

What are the mathematical functions and constants in Python (import math)?

Discuss random number functions in Python.

Viva Topics:

 Python identifiers, reserved words, and indentation


 Handling input and output in Python
 Python operators and precedence
 Control statements and loops in Python
Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Unit III: Python String

What are escape characters in Python? Provide examples.

Discuss string special operations in Python.

Explain string formatting using the formatting operator (%) in Python.

What are the differences between single quotes, double quotes, and triple quotes in Python?

What are raw strings and Unicode strings?

Explain built-in string methods in Python. Provide examples.

How do you create and access elements in Python lists?

Discuss list operations like updating, deleting, and reversing a list.

Explain indexing and slicing in Python lists and matrices.

Viva Topics:

 String operations and formatting


 Difference between single, double, and triple quotes
 Python list operations and slicing

Unit IV: Python List

What are built-in list functions in Python?

Discuss functional programming tools in Python such as filter(), map(), and reduce().

How can lists be used as stacks and queues in Python?

Explain list comprehensions with examples.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Viva Topics:

 Built-in list functions


 Functional programming in Python (filter, map, reduce)
 Using lists as stacks and queues
 List comprehensions

Unit V: Python Tuples and Sets

How do you create and delete tuples in Python?

Explain how you access values in a tuple and perform tuple operations.

What are the basic operations on tuples in Python (indexing, slicing)?

What are the differences between tuples and lists?

Discuss sets in Python: concept and operations.

Viva Topics:

 Tuple operations in Python


 Set operations and properties in Python
 Differences between tuples and lists

Unit VI: Python Dictionary

How do you create and access values in a Python dictionary?

Explain how to update and delete dictionary elements.

What are the properties of dictionary keys in Python?

Discuss the built-in dictionary functions and methods in Python.

How do you define a function in Python using the def keyword?


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Explain the different types of function arguments in Python (Pass by value, Keyword arguments,
Default arguments).

What are documentation strings in Python? How are they used?

Explain variable numbers of arguments in Python functions.

What is Call by Reference in Python?

Explain the order of arguments in Python (positional, extra, and keyword).

Viva Topics:

 Dictionary operations (create, access, update, delete)


 Function definition and arguments
 Call by reference and documentation strings
Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Question Bank

Class: BCA(Science) Semester-VI

Subject:- BCA 363: DSE VI Software Project Management

Unit I: Introduction to Software Project Management

Define a project. How does a software project differ from other types of projects?

Differentiate between project work and flow-type work.

Explain the various phases of the project lifecycle.

Discuss the processes and knowledge areas in project management.

What is the 'Build or Buy' decision in software project management?

Explain the concept of Work Breakdown Structure (WBS) and its types.

What is PMBOK? Discuss its significance in software project management.

Differentiate between program management and portfolio management.

Unit II: Project Planning and Project Management Tools


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

What is project planning? Discuss its importance in software project management.

List and explain the steps involved in project planning.

Differentiate between PERT and Gantt charts.

Explain how Gantt Project is used in project management.

Discuss the objectives of activity planning in project management.

Explain the concepts of project schedules, activities, sequencing, and scheduling.

What are network planning models? Discuss their significance.

Explain the process of formulating a network model in project management.

Unit III: Activity-Based Scheduling

Provide an introduction to activity-based scheduling.

Discuss the objectives of activity planning in the context of scheduling.

Explain the different types of activity relationships: FS, SF, SS, and FF.

What is the forward pass technique in scheduling? Explain its significance.

Describe the backward pass technique and its application in scheduling.

Explain the critical path concept and discuss remedies for managing critical paths.

Unit IV: Project Tracking and Control

Provide an introduction to project tracking and control.

Discuss the methods and importance of collecting project data.

Explain how progress is visualized in project tracking.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

What is cost monitoring? Discuss its role in project control.

Explain the concept of earned value analysis and its significance.

Discuss the techniques and tools used in project tracking.

What is change control? Explain its importance in project management.

Define software configuration management and its role in project control.

Explain the process of managing contracts in software projects.

Unit V: Agile Project Management

Differentiate between predictive and empirical management approaches.

Compare and contrast non-agile and agile project management methodologies.

Discuss the three stages of an agile project.

Explain the estimation process in agile project management.

Discuss scope management in the context of agile projects.

List and explain the roles and responsibilities in an agile project.

Explain how scheduling and tracking are managed in agile projects.

Unit VI: Staffing in Software Projects

Discuss the importance of managing people and understanding organizational behavior in software
projects.

What are the best methods for staff selection in software projects?

Explain the concept of motivation and its impact on project success.


Dr. D. Y. Patil Unitech Society’s
DR. D. Y. PATIL ARTS, COMMERCE AND SCIENCE COLLEGE, PIMPRI, PUNE - 18
Department of Computer Science
2024 – 2025

Describe the Oldham-Hackman job characteristics model and its application.

Discuss the management of stress, health, and safety in software projects.

You might also like