Skip to content
Main Menu
Home
Blog
Contact Us
Sumita Arora Solutions
Join Our Community
Class 12 Projects
Home
Chapters
Chapter 1
Chapter 1
Solutions to Sumita Arora Assignment in Chapter 1.
[Type A] Chapter– 1 Class 12 CS – Sumita Arora Assignment | Q/A
[Type B] Chapter– 1 Class 12 CS – Sumita Arora Assignment | Q/A
[Type C]Q1. Write a program to print one of the words negative, zero, or positive, according to whether variable x is less than zero, is zero, or greater than zero respectively.
[Type C]Q2. Write a program that returns True if the input number is an even number, False otherwise.
[Type C]Q3. Write a python program that calculates and prints the number of seconds in a year.
[Type C]Q4. Write a Python program that accepts two integers from the user and prints a message saying if the first number is divisible by the second number or it is not.
[Type C]Q5. Write a program that asks the user the day number in a year in the range 2 to 365 and asks the first day of year-Sunday or Monday or Tuesday etc. Then the program should display the day on the day-number that has been input.
[Type C]Q6. One foot equals 12 inches. Write a function that accepts a length written in feet as an argument and returns this length written in inches. Write a second function that asks the user for a number of feet and returns this value. Write a third function that accepts a number of inches and displays this to the screen. Use these three functions to write a program that asks the user for a number of feet and tells them the corresponding number of inches.
[Type C]Q7. Write a program that reads an integer N from the keyboard, computes it, and displays the sum of the numbers from N to(2N) if N is non-negative. If N is a negative number, then it’s the sum of numbers from(2N) to N. The starting and ending points are included in the sum.
[Type C]Q8. Write a program that reads a date as an integer in the format MMDDYY. The program will call a function that prints out the date in the format: 25 December 2019.
[Type C]Q9. Write a program that prints tables on two columns-table that helps to convert miles into kilometer.
[Type C]Q10. Write another program printing a table with two columns that help convert pounds in kilograms.
[Type C]Q11. Write a program that reads two times, in military format(0900,1730), and prints the number of hours and minutes between the two times. eg: First time: 0900 Second time: 1730, 8 hours 30 minutes
You cannot copy content of this page