0% found this document useful (1 vote)
20 views

CL 6 Java Programming(B) Revision Questions-1

Questions in java

Uploaded by

ishitajain7690
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 (1 vote)
20 views

CL 6 Java Programming(B) Revision Questions-1

Questions in java

Uploaded by

ishitajain7690
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/ 2

Name: _________________________ Date: ________

Section: __________________ Roll No: _____


La Martiniere Girls’ College
Class VI
Computer Science
Java Programming (B)
Revision Questions
Q1. Identify the type of data type for the following values:
i. 890 _________________
ii. “AWESOME”_____________
iii. -56_______________
iv. “HAVE FAITH IN GOD”_____________

Q2.Match the following:


S.NO COLUMN A COLUMN B
(EXPRESSION) ( RESULT)
int a = 12;
i int b = 6; a. o: 40
int c = a+b;
int x = 40;
ii int y = 2; b. r: 25
int z = x/y;
int p = 35;
iii int q = 10; c. z: 20
int r = p-q;
int m= 100;
iv int n = 60; d. c: 18
int o = m-n;

LMGC/Computer Science/Cl 6/ Java Programming (B)/Rev PAGE 1 OF 2


Q3. Fill in the blanks in this Java program code.
class Greetings
{
public ( i) void main( ((ii) args[])
{
(iii)a = 5;
(iv)b = 6;
int sum = a+b;
System.(v). print (“ The sum of two numbers:” +sum);
}
}
i.___________ ii______________ iii______________ iv_______________ v____________

Q4. Write a program and draw the flowchart for the following:
i. There are 900 students in a school. If the number of boys are 460. Find out the
number of girls.
ii. Vaneesa reads 2 books every day. How many books does she read in 5 days?

LMGC/Computer Science/Cl 6/ Java Programming (B)/Rev PAGE 2 OF 2

You might also like