0% found this document useful (0 votes)
8 views4 pages

Ae2 PPS

Uploaded by

p.dhiru2006
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)
8 views4 pages

Ae2 PPS

Uploaded by

p.dhiru2006
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/ 4

‭Pattern‬‭:‬

‭NAME:‬

‭REG NO:‬

‭– QUESTION–‬

‭ALGORITHM:‬

‭CODE:‬

‭(Each line of code should be explained in comments)‬

‭eg:‬

‭POSSIBLE ERRORS:‬
‭—--------—---------PPS CT-1 INTERNALS CODE Q’S—--------------------------‬

‭.‬

‭ .‬ W
1 ‭ rite a program that takes two integers as input and prints their sum.‬
‭2.‬ ‭Write a program that takes a floating-point number as input and prints it with two‬
‭decimal places.‬
‭3.‬ ‭Declare an integer, a float, and a character variable, and print their values.‬
‭4.‬ ‭Write a program that performs and prints the result of integer division and modulus‬
‭operations.‬
‭5.‬ ‭Create a program that calculates the area of a circle using the radius (float) and‬
‭prints it.‬
‭6.‬ ‭Write a program that converts an integer to a float and prints the result.‬
‭7.‬ ‭Write a program that demonstrates type casting between integer and float.‬
‭8.‬ ‭Implement a program to calculate the result of an arithmetic expression involving‬
‭addition, subtraction, multiplication, and division.‬
‭9.‬ ‭Write a program that checks if a number is positive, negative, or zero.‬
‭10.‬‭Create a program that uses comparison operators to compare two numbers and‬
‭prints the result.‬
‭11.‬‭Write a program that prints the numbers from 1 to 10 using a‬‭ for‬‭loop.‬
while‬‭loop to calculate the factorial of a number.‬
‭12.‬‭Implement a program that uses a‬‭
if-else‬‭statement that checks if a number is divisible by 3 and 5.‬
‭13.‬‭Write an‬‭
‭14.‬‭Create a‬‭ switch‬‭statement (or equivalent in your language) that prints the name of‬
‭a month based on a number (1-12).‬
‭15.‬‭Write a program to initialize an array of 5 integers and print its elements.‬
‭16.‬‭Create a program to find the sum of all elements in an integer array.‬
‭17.‬‭Write a function to find the average of an array of floats.‬
‭18.‬‭Implement a program to find the smallest number in an integer array.‬
‭19.‬‭Write a program that uses pointers to traverse and print an integer array.‬
‭20.‬‭Implement a function that takes an array and its size as parameters and returns the‬
‭maximum value using pointer arithmetic.‬
‭21.‬‭Create a program that reverses an array using pointers.‬
‭22.‬‭Write a function that takes an array of integers and swaps the first and last elements‬
‭using pointers.‬
‭23.‬‭Write a program that concatenates two strings and prints the result.‬
‭24.‬‭Create a function that counts the number of vowels in a string.‬
‭25.‬‭Write a program to check if a string is a palindrome.‬
‭26.‬‭Implement a function that returns the length of a string without using built-in‬
‭functions.‬
‭27.‬‭Write a function to calculate the square of a number and print the result.‬
‭28.‬‭Implement a function that checks if a given year is a leap year.‬
‭29.‬‭Write a function to compute the greatest common divisor (GCD) of two numbers.‬
‭30.‬‭Create a function that takes two numbers as arguments and returns their product.‬
‭31.‬‭Write a function that takes an array of integers and its size as arguments and returns‬
‭the sum of the elements.‬
‭32.‬‭Create a program that uses a function to sort an array of integers in ascending order.‬
‭33.‬‭Implement a function that takes an array and its size as arguments and finds the‬
‭average of the elements.‬
‭34.‬‭Write a program that finds the median of an array using a function.‬
‭35.‬‭Write a Python program that prints “Hello, World!” to the console.‬
‭36.‬‭Create a Python program that takes user input and prints it.‬
‭37.‬‭Write a Python program that takes two numbers as input and prints their sum.‬
‭38.‬‭Implement a Python program that formats and prints a floating-point number to two‬
‭decimal places.‬
‭39.‬‭Create a Python list of five integers and print it.‬
‭40.‬‭Write a Python program to create a dictionary with keys and values and print it.‬
‭41.‬‭Implement a Python set with unique elements and print it.‬
‭42.‬‭Write a Python program to add, remove, and check membership of elements in a list.‬
‭43.‬‭Write a Python program to initialize a list with 5 elements and print it.‬
‭44.‬‭Create a function in Python to find the maximum element in a list.‬
‭45.‬‭Create a function in Python to find the minimum element in a list.‬
‭46.‬‭Implement a Python program to reverse a list.‬
‭47.‬‭Write a function to remove duplicates from a list.‬
‭48.‬‭Write a function to calculate the sum of all elements in a list.‬
‭49.‬‭Write a Python program to create a NumPy array of integers and print it.‬
‭50.‬‭Implement a NumPy program to perform element-wise addition of two arrays.‬
‭51.‬‭Write a Python function to calculate the mean of a NumPy array.‬
‭52.‬‭Create a NumPy program to find the standard deviation of an array.‬
‭53.‬‭Write a Python program to create a Pandas DataFrame from a dictionary and print it.‬
‭54.‬‭Implement a Pandas program to calculate the mean of a column in a DataFrame.‬
‭55.‬‭Create a Pandas DataFrame and demonstrate how to filter rows based on a‬
‭condition.‬
‭56.‬‭Write a Python function using Pandas to find the sum of values in a specific column‬
‭of a DataFrame.‬
‭57.‬‭Create a Pandas DataFrame from a CSV file and display the first 5 rows.‬
‭58.‬‭Write a Python function to clean missing values in a DataFrame using Pandas.‬
‭59.‬‭Use NumPy to perform basic statistical analysis (mean, median, variance) on a‬
‭dataset.‬
‭60.‬‭Implement a Pandas program to group data by a specific column and calculate‬
‭aggregate statistics (e.g., sum, average).‬
‭ 1.‬‭Write a program that declares variables of different data types and prints their types.‬
6
‭62.‬‭Create a program that performs arithmetic operations and prints the results with‬
‭explanations.‬
‭63.‬‭Write a program that prints all prime numbers up to 100 using loops and conditions.‬
‭64.‬ ‭Implement a function to compute the power of a number (e.g., aba^bab).‬
‭65.‬‭Write a function to remove duplicates from an array and return a new array.‬
‭66.‬‭Create a program that demonstrates pointer arithmetic with arrays.‬
‭67.‬‭Write a Python function that replaces all occurrences of a substring in a string.‬
‭68.‬‭Implement a function to convert a string to uppercase without using built-in functions.‬
‭69.‬‭Write a function that rotates an array to the right by a given number of steps.‬
‭70.‬‭Create a Python script that reads data from a file and prints its contents.‬
‭71.‬‭Implement a Python function to merge two lists and remove duplicates.‬
‭72.‬‭Write a Python program to flatten a list of lists into a single list.‬
‭73.‬‭Create a Pandas DataFrame and demonstrate how to merge two DataFrames on a‬
‭common column.‬

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