0% found this document useful (0 votes)
23 views

Advanced Programming Important Questions Semester Examination

Advanced Programming

Uploaded by

aadyashamajhi84
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Advanced Programming Important Questions Semester Examination

Advanced Programming

Uploaded by

aadyashamajhi84
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Advanced Programming Important Questions

Module 1
2 Marks
1. What is Google colaboratory and how it is helpful in python programming?
2. What is identity operator in python? Give two examples of this operator.
3. Differentiate between AND and OR operator in python with two example.
4. Write with example about NOT logical operator and modulus arithmetic operator.
5. Describe any four different data types available in python. Write a small program to show their use.
6. Write any four python keywords with their purpose.
7. Write the purpose of PANDAS and NumPy
8. Discuss the usage of REPL in python.
9. Give a suitable example of creating a set with any two features.
10. Write any five features of python programming.

6 Marks
1. Write about membership operators and identity in python with their purpose and one example
from each.
2. Describe the different logical operators in python with suitable example for each one of them.
3. Compare and contrast between the use of pass and return statement in python with example?
4. Explain the features of Tuples and various operations along with examples.
5. Describe the different assignment operators and identity operators in python with suitable example
for each one of them.
6. Describe the arithmetic, relational, membership and bitwise operators in python with their purpose
and demonstrate one example from each one of them.
7. Write a program in python to take the input from the user and find the sum, difference, product,
division, modulus and power.

16 Marks
1. Describe Features of the following with examples and various operations.
a) List
b) Tuple
c) Set
d) Dictionary
2. Describe Features of the following operators by demonstrating examples for each one of them.
a) Arithmetic operator
b) Logical operator
c) Relational operator
d) Membership operator
3. Illustrate Features of the following python functions with example. Write the data structure they are
associated with. a) Append( ), b)pop( ), c)Add( ), d)Remove( ), e)Get( ) , f)keys( )
Module 2
2 Marks
1. Name any four tools used for implementing python code.
2. Given series of numbers from 1 to 50, print the number and their squares.
3. Using for loop display the number from 25 to 35 in python.
4. Write a Python program to check the whether a given character is Vowel or Consonant.
5. Using for loop display 1 to 15 without printing 5.
6. Using a step value of -2 print the square root of even numbers from 100 to 90.
7. Enter five words in a list. Then print the words one by one without the 3rd one. Write a program
for this using for loop.

6 Marks
1. Code a program to check if a number is PALLINDROME or not.
2. Write a program in python to display the numbers and their cubes from 40 to 80 with an interval of
3
3. Write a program in python to display all odd numbers from 50 to 200 which are divisible by 7 and
3 both.
4. Code a program to print the numbers and their squares from 1 to 100 with an interval of 2.
5. Write a program to demonstrate Nested if and NOT operator in a single python program.
6. Enter a string from the user and print its individual characters with index numbers in reverse order.
7. Write a Python Program to enter a number and print its multiplication table.
8. Enter a string from the user and print its individual characters with index numbers in reverse order.
9. Write a program in python to Swap two integer numbers using a temporary variable. Repeat the
exercise using the code format: a, b = b, a. Verify your results in both the cases.
10. Explain the variable scope in python with example illustration.
11. Enter a string from the user and print its individual characters with index numbers in reverse order.
12. Write program to print all odd numbers from 100 to 1 which are divisible by 7
13. Write a program to print the numbers and their squares from 1 to 100 with an interval of 2.
14. Write a Python program to find the grade of a Student for the marks secured in 5 subjects.

16 Marks
1. Explain the purpose of loop control statement? Discuss for loop, while loop, ELSE for loop,
BREAK, CONTINUE & PASS keywords with example.
2. Describe the different decision control statement with example.

Module 3
2 Marks
1. Describe the need of using function in a programming language.
2. Write a program in python to calculate the compound interest using function.
3. Describe the need of using keyword argument in a function.
4. Explain with example regarding the use of return and pass command in function?
5. Add some integers to a list, then use a function to output the highest value.
6. Why function is used? Give example of a default parameter value in function.

6 Marks
1. Write a program to create a list of 5 subjects. Define a function Display ( ) to display the subjects
line by line with serial numbers. Pass the list name as argument. At last print how many subject
names were passed?
2. Differentiate between the actual argument and formal argument in python with suitable example.
3. What is the meaning of arbitrary argument *args and keyword argument? Explain each one of them
with an appropriate example.
4. Describe the usage of Fruitful function in python. Write a program using Fruitful Function to
compute the area of a triangle.
5. Write a Python program using anonymous function to find the power of a number?
6. Differentiate between local scope and global scope of a variable in python with example
illustration.
7. Explain the concept of namespacing in python with example.
8. Write a Python program using anonymous function to find the power of a number?
9. Describe the procedure to define a function and call a function evenodd () to display whether a
number entered by the user is even or odd. Explain with example to show the difference between
actual argument and formal argument passed in a function.
10. What is the meaning of arbitrary argument *args, keyword argument and default argument? Explain
each one of them with an appropriate example.

16 Marks
1. Code a python program to make a list of some software tools. Display the tool names line by line
with serial numbers, define the function print_tool ( ) to pass the list name as parameter. At last
print how many tool names were entered?
2. Detail the properties of anonymous function. Explain the different types of arguments that we pass
through a function with example.

Module 4
2 Marks
1. Explain the need of import statement in python with example.
2. Write a use of PIP in python programming.
3. Differentiate between set and dictionary in python.
4. Write a python script to find the largest number from a list of numbers.
5. Differentiate between tuple and list in python.
6. Write a Python script to check whether a given key already exists in a dictionary.

6 Marks
1. Write a python code to show the union and difference of two sets.
2. Write a program using tuple to count how many times an element is repeated.
3. Create your own module and use it in another program to find the area and circumference of a
circle.
4. Write a python code to add and remove items from a given set.
5. Discuss the significance of python package and its implementation with example.
6. Create your own module and use it in another program to perform addition, subtraction,
multiplication and division of two number entered by the user.
7. Explain the concept of Module and Package in python with demonstrating the difference between
them.
8. Discuss the various mechanisms of List comprehension.
9. Write a program in python to find and print the largest and smallest number from a list of numbers.
Use two functions called max_no ( ) and small_no ( ) for this purpose.

16 Marks
1. Write short notes on following python packages with their applications in short.
a) NumPy
b) Matplotlib
c) Scikit-learn
d) PANDAS

2. Consider a dataset “Toyota.csv” with the following columns and there are 1000 rows. Price, Age,
KM, FuelType, HP, Metcolor, Automatic, CC, Doors, Weight. Write python code to answer the
following questions. Read the csv file to a data frame cars_data.
a. Display the columns of cars_data.
b. Display how the dimension of cars_data (no. of rows and columns)
c. Display the first 10 rows of data frame and index 2nd to index 6th columns using iloc [ ].
d. Using loc[ ] display the rows 500 to 550 and columns Price,HP and Weight

3. What are dictionaries? How to declare a dictionary and what is get ( ) and keys ( )? Write any three
features of dictionary with the purpose of items ( ) method.

You might also like