0% found this document useful (0 votes)
6 views

Questions On Computer Science

computer science questions for pseudocode

Uploaded by

Arnav Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Questions On Computer Science

computer science questions for pseudocode

Uploaded by

Arnav Kumar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Questions on computer science

1. 2D array
A class science project to find average temperature each day of the week used 2 parallel
arrays Names and Temperature.
A single dimension array DAYS holds the names of days of a week.
A 2D array temperature holds the temperature recorded at 4 times every day at 9am, 12 noon ,
4pm and 8 pm. for the 7 days of the week .
Take input into both arrays . Program should ensure that the temperature input should be
between 20 to 50 degree centigrade.
Once the temperature is recorded for the entire week, output the average temperature for the
entire week. And the day that had the highest temperature and the day that had the lowest
temperature recorded.

Q2 Write pseudocodes to create the following procedure/ functions.

1) To convert Singapore dollars to Indian rupee. It accepts amount in SGD and outputs equivalent
amount in INR

2) To convert SGD to USD and returns the value. It accepts the amount in SGD and returns the
corresponding amount in USD

3) Main Program to take input of amount in SGD and call the correct function / procedure.

Note: conversion rates


1 SGD = 61.60 INR
1 SGD = 0.71 USD

● Use appropriate and meaningful names for all variables and functions/procedure names.
● Write comments to Make your code easier to understand.

1. Take two no. as input and display their sum, difference, product and reminder
2. Take the age of the user and output if he is eligible to vote.
3. Write a pseudocode finding minimum and maximum to input marks of tn students. Find
the class and average minimum highest and lowest score.
4. Use the three loops to write pseudocode to find the sum of first ten natural no.
5. Write a pseudocode to take the room temperature at noon everyday for a weel output the
average temperature of the week, maximum and minimum.
1.) Write a pseudocode to display 2 no. find the biggest of two
2.) Display if the given no. is a positive or negative
3.) To read two no. into variables and swap them
4.) Display the largest of three different numbers
5.) To find the sum of the two largest no, among the three variable no. input
6.) To find the sum of the two smallest no. among the three input
7.) Take the marks of 5 subjects as input and find and display the total and average also
display the grade based on followin
>90 : A*
81-90 : A
71-80: B
61-70 : C
51-60 : D
40 -50 : E
<40 : F

1. Display the sum of first n natural no. where n is input by the user
2. Display the factorial of a given a no.
3. To take no.s as input repeatedly till user enter a is -1
4. Display the sum count, minimum and maximum
5. To read 100 numbers within the range of 100 to 200 inclusive and display their sum and
average
6. To read n numbers from the user and display the count at even numbers and odd numbers
and display the sum of even numbers and odd
7. To display the 15 digit in fibonaeci sequence
8. Display weather the no. input is a prime no. or composite no.
9. Take the length and breath of rectangle as input and display its area and perimeter.

Class 10 Igcse is conducting a science experiment asked to find the average temperature at noon
at a fortnight. The temperature as input in 1D array called ‘temp’. Another array Day stores the date
as string, data is also input by user, format DD/MM/YYYY.

1. Validation - 10 digits in date


2. Temperature - Range check, 20 -50
3. Output the average temperature, the date when the highest and lowest temperature when
recorded.

Write an algorithm to input 1000 numbers in an array Num. Count how many no. are positive and
how many no. are ) in a procedure called count. Then Output the results. Use pseudocode.
An 2D array heights stores the roll no. and their heights in cm. Write pseudocode to display the
contents of the array.

The heights of students in class of 20 is in a 1 D Array display the array in the ascending Order.

In the heights array search an output the heights of the roll no. input by the user.

At the sports meet the

You might also like