subject

Selection challenges 1 1. Write a Python program to accept two integers and check whether they are equal or not. Test Data : 15 15
Expected Output : Number1 and Number2 are equal

2. Write a Python program to check whether a given number is even or odd.
Test Data : 15
Expected Output : 15 is an odd integer

3. Write a Python program to check whether a given number is positive or negative. Test Data : 15
Expected Output : 15 is a positive number

4. Write a Python program to find whether a given year is a leap year or not.
Test Data : 2016
Expected Output : 2016 is a leap year.

5. Write a Python program to read the age of a candidate and determine whether it is eligible for casting his/her own vote.
Test Data : 21
Expected Output : Congratulation! You are eligible for casting your vote.

6. Write a Python program to read the value of an integer m and display the value of n is 1 when m is larger than 0, 0 when m is 0 and -1 when m is less than 0.
Test Data : -5
Expected Output : The value of n = -1

7. Write a Python program to accept the height of a person in centimeter and categorize the person according to their height. Test Data : 135
Expected Output : The person is Dwarf.

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, Gaby702
Which is produced by the endocrine system to control how cells and organs function
Answers: 2
image
Computers and Technology, 22.06.2019 11:00, sjackson0625p8w1a0
Which action is good business etiquette? a. switching your cell phone off before you enter a meeting b. keeping your cell phone on low volume before you enter a meeting c. setting a pleasant ring tone on your cell phone before you enter a meeting d. setting a standard ringtone on your cell phone before you enter a meeting
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, manny2085
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
Answers: 1
image
Computers and Technology, 23.06.2019 07:00, schvox
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
You know the right answer?
Selection challenges 1 1. Write a Python program to accept two integers and check whether they are...

Questions in other subjects: