Semester : SEMESTER 4
Subject : Computer Programming
Year : 2020
Term : SEPTEMBER
Scheme : 2015 Full Time
Course Code : AE 202
Page:2
a)
b)
०)
a)
b)
०)
a)
b)
0)
02000AE202052001
Employee id, employee name, and basic salary, net. Create a nested structure with
members hra, ta, da. Write a C program to read details of employee and calculate
the net salary and print all details.
PART C
Answer any two full questions. Each question carries 20 marks
Make a python program to get marks for 3 subjects and declare the result. If the
marks >= 35 in all the subjects the student passes else fails
The variables x and y refer to numbers. Write a python code segment that prompts
the user for all arithmetic operators and prints the value obtained by applying that
operator to x and y.
Compose a python program to check whether a given number is Armstrong or not.
Which are the operators used in python? Explain with examples
Build a python program to check whether a given string is palindrome or not.
Construct a python program to find the transpose of a given matrix using list.
Assume that the variable data refers to the dictionary {*b’:34, "മ: 67}.
Write the expressions that perform the following tasks
a) Replace the value at key “0? with negation of the value.
b) Add key:value pair ‘c’:56 to data.
c) Remove the value at key ‘a’ in data.
Write a python program to find the average of numbers in a list.
Difference between list and dictionaries in python programming.
Page 2 of 2
ॐ പപ പപ ॐ