Please select a subject first
Advertisements
Advertisements
What is the need for secondary memory?
Concept: undefined >> undefined
How does RAM differ from ROM?
Concept: undefined >> undefined
Advertisements
Check the size of the RAM and HDD of a computer in your school. Make a table and write their size in Bytes, Kilobytes, Megabytes, and Gigabytes.
Concept: undefined >> undefined
List all secondary storage devices available at your school or home.
Concept: undefined >> undefined
Write an algorithm that performs the following:
Ask a user to enter a number. If the number is between 5 and 15, write the word GREEN. If the number is between 15 and 25, write the word BLUE. if the number is between 25 and 35, write the word ORANGE. If it is any other number, write that ALL COLOURS ARE BEAUTIFUL.
Concept: undefined >> undefined
Write an algorithm that accepts four numbers as input and finds the largest and smallest of them.
Concept: undefined >> undefined
Write an algorithm to display the total water bill charges of the month depending upon the number of units consumed by the customer as per the following criteria:
- for the first 100 units @ 5 per unit
- for next 150 units @ 10 per unit
- more than 250 units @ 20 per unit
Also, add meter charges of 75 per month to calculate the total water bill.
Concept: undefined >> undefined
Following is an algorithm for going to school or college. Can you suggest improvements in this to include other options?
Reach_School_Algorithm
- Wake up
- Get ready
- Take lunch box
- Take the bus
- Get off the bus
- Reach school or college
Concept: undefined >> undefined
Following is an algorithm to classify numbers as “Single Digit”, “Double Digit” or “Big”.
Classify_Numbers_Algo
INPUT Number
IF Number < 9
"Single Digit"
Else If Number < 99
"Double Digit"
Else
"Big"
Verify for (5, 9, 47, 99, 100, 200) and correct the algorithm if required.
Concept: undefined >> undefined
For some calculations, we want an algorithm that accepts only positive integers up to 100.
Accept_1 to 100_Algo
INPUT Number
IF (0 <= Number) AND (Number <= 100)
ACCEPT
Else
REJECT
- On what values will this algorithm fail?
- Can you improve the algorithm?
Concept: undefined >> undefined
Write the corresponding Python assignment statement:
Assign 10 to variable length and 20 to variable breadth.
Concept: undefined >> undefined
Write the corresponding Python assignment statement:
Assign the average of values of the variable's length and breadth to a variable sum.
Concept: undefined >> undefined
Write the corresponding Python assignment statement:
Assign a list containing strings ‘Paper’, ‘Gel Pen’, and ‘Eraser’ to variable stationery.
Concept: undefined >> undefined
Write a program to swap two numbers using a third variable.
Concept: undefined >> undefined
Write a program to swap two numbers without using a third variable.
Concept: undefined >> undefined
Give the output of the following when num1 = 4, num2 = 3, num3 = 2.
num1 = float(10)
print (num1)
Concept: undefined >> undefined
Observe the following program carefully, and identify the error:
mynum = 9
def add9():
mynum = mynum + 9
print mynum
add9() #function callConcept: undefined >> undefined
Using an example showing how a function in Python can return multiple values.
Concept: undefined >> undefined
Differentiate between the following with the help of an example:
Global and Local variable
Concept: undefined >> undefined
Consider the following string mySubject:
mySubject = "Computer Science"
What will be the output of the following string operation:
print(mySubject.isalpha())
Concept: undefined >> undefined
