0% found this document useful (0 votes)
66 views1 page

Computer Application Examination: (Email ID:)

This document provides instructions for a computer application examination. It includes 4 questions that require writing Java programs to calculate the highest common factor and lowest common multiple of two numbers, convert strings to uppercase/lowercase, calculate areas of geometric shapes, and sort an array of numbers into even and odd arrays. Variables must be described with name, size, type, and purpose. Programs are worth 5 marks each for a total of 20 marks.

Uploaded by

Soumyadip
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)
66 views1 page

Computer Application Examination: (Email ID:)

This document provides instructions for a computer application examination. It includes 4 questions that require writing Java programs to calculate the highest common factor and lowest common multiple of two numbers, convert strings to uppercase/lowercase, calculate areas of geometric shapes, and sort an array of numbers into even and odd arrays. Variables must be described with name, size, type, and purpose. Programs are worth 5 marks each for a total of 20 marks.

Uploaded by

Soumyadip
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/ 1

COMPUTER APPLICATION EXAMINATION

[Class 10] [Date: 23/08/2020] [School: MEA+CLARET+STADS]


[Full Syllabus Exam – 2] [Time: 9:15 AM to 10:15 AM] [Full Marks: 20]
[Email ID: esaby.class10@gmail.com]
INSTRUCTIONS
Make a single copy of your script as a PDF file and send it in the email-id provided in the paper by 10:30
AM. After which mails will not be checked!!

Variable Description Format (Contains 1 Mark):


NAME OF THE VARIABLE SIZE/TYPE OF VARIABLE PURPOSE

ANSWER ALL QUESTIONS

I. Write Java Programs. Variable Listing is required [5*4 = 20]


1. Write a program by using a class with the following specifications:
Class name — Hcflcm
Data members/instance variables: Member functions:
a) int a a) Hcflcm(int x, int y) — constructor to
b) int b initialize a=x and b=y.
b) void calculate( ) — to find and print
hcf and lcm of both the numbers.

2. Write a program using a class with the following specifications: Data Members Purpose
Class name: Caseconvert
String str To store the string
Member Methods Purpose

void getstr() to accept a string


to obtain a string after converting
void convert() each upper case letter into lower
case and vice versa
void display() to print the converted string

3. Write a program using a function called area() to compute area of the following:
(a) Area of circle = (22/7) * r * r
(b) Area of square= side * side
(c) Area of rectangle = length * breadth
Display the menu to display the area as per the user's choice.

4. Write a program in Java to accept 20 numbers in a single dimensional array arr[20]. Transfer and store
all the even numbers in an array even[ ] and all the odd numbers in another array odd[ ]. Finally, print
the elements of both the arrays.
Page 1 of 1

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