ICSE Class VIII Computer Solutions

Displaying 5 out of 25 questions & answers.
Q1.

Fill in the blanks.

  1. A program is a set of ______________ given to the computer to perform a task and give a ___________________.
  2. An ________________ translates and finds the error one line at a time.
  3. When an integer input is expected, but the user provides a name (string), this type of error is ______________________ error.
  4. The name of variables should be _____________________.
  5. Smallest value for an int data type is _______________ and the largest is _____________.
S A M P L E
S A M P L E
www.bigslate.com
Answer:
S A M P L E
answer not shown
Q2.

State whether the following statements are True (T) or False (F).

  1. Character literals are enclosed within double quotes.
  2. The % operator gives the remainder.
  3. The name given to a memory location is called a variable.
  4. Double is a data type that stores only integers.
  5. In an 'if-else' block, the 'if' statment is optional.
S A M P L E
S A M P L E
www.bigslate.com
Answer:
S A M P L E

a. False

b. True

c. True

d. False

e. False

Q3.

Find the errors in the following statements and re-write it making necessary corrections.

  1. int a;b;c;
  2. int a, float b;
  3. int a=12.3;
  4. float a=12.69;
S A M P L E
S A M P L E
www.bigslate.com
Answer:
S A M P L E
  1. int a, b, c;
  2. int a;
    float b;
  3. float a=12.3f;
  4. float a=12, 69f;
Q4.

State whether the following variable names are valid/invalid. If invalid, rectify it.

  1. name1
  2. float
  3. c.p.
  4. A>B
S A M P L E
S A M P L E
www.bigslate.com
Answer:
S A M P L E

a. name1 - valid
b. float - invalid; corrected name - float1
c. c.p. - invalid; corrected name - cp
d. A>B - invalid; corrected name - AB

Q5.

Write statements in Java for the following:

  1. Declare a variable a and b of integer type.
  2. Declare an integer variable x and initialize it with 73.
  3. Assign the sum of the variable m and n into the variable q.
  4. Check whether the value in variable a is greater than or equal to the value in variable b.
  5. Divide x with y and store the remainder in x.
S A M P L E
S A M P L E
www.bigslate.com
Answer:
S A M P L E
  1. int a, b;
  2. int x = 73;
  3. q = m + n;

  4. if (a >= b)
    {
    System.out.println (a + "is greater than or equal to value in b");
    }

  5. int x, int y;
  6. x = (x % y);
Other Books
ICSE Physics – Book 8
Neha Sharma and Niharika Bhayana
Friday Afternoon Comprehension & Composition 8
Radha Kunjappa, Oxford University Press
A Textbook of Geography
Veena Bhargava, Goyal Brothers Prakashan
New Oxford Modern English
David Horsburgh, Nicholas Horsburgh, Claire Horsburgh, Oxford Un
ICSE Physics 8
Shubhra Mukherjee, LONGMAN/PEARSON
ICSE Biology 8 - Young Scientist Series
Shakuntala Bhattacharya, LONGMAN/PEARSON
Dreamcatcher 8 - An English Reader
Ruplekha Sengupta, Madhubun Educational Books
The Trail - History & Civics
Jayanti Sengupta, Oxford Uni Press
Connect with Science - 8
Sangeeta Sinha, Oxford Uni Press
ICSE Physics 8
Neha Sharma, Viva Education
Reboot
Sangeeta Panchal, Alka P, Oxford Uni Press
Aster
Tara Chadha, Lalitha Eapen - Longman-PEARSON
New Mulberry English Course
Ashima Bath, Saswati, OXFORD
Frank Middle School Geography
Ananya roy, Frank Bros & Co.
P C Wren's Grammar
Blackie, S Chand Books
Understanding History & Civics
B B Tayal, Sumangal, Avichal Publishing Co
New Trends in ICSE Chemistry
Baljinder Kaur, EVERGREEN - CANDID
Essential ICSE Biology
R. N. Mukherjee, Bharati Bhawan
Cambridge Connection English 8
Sunirmal Chakravarthi, Anita Shourie, Cambridge Uni Press
Engaging English 8
Preeti Roychoudhury, Sadeqa - Collins
Concise Physics 8
S S Shome, Selina Pub
Skywalk Coursebook 8
Alathea D'Rozario, Falguni Chak, Wordworth
Amber Coursebook 8
Kavita Soni, Indiannica Learning
New English Junction Coursebook 8
Dr Samson Thomas, Orient BlackSwan, Sangam Books
Voyage 8
Dorothy M, Nelson Petrie, Oxford
New Gulmohar Reader 8
N S Prabhu, M L Tickoo, Orient BlackSwan
Double Click
Rajni Kansal, Priti Prakashan Ltd.
Together with History & Civics
Dharamveer Singh, Rachna Sagar
A Magic Place
Suchismita Raha, Orient BlackSwan
Essential English Reader 8
Pradip K Sen, Golden Circle Pub
Anytime English Grammar & Composition 8
Anita Arathoon, Candid, Evergreen Publications
Effective Geography
Dolly E Sequeira, Beeta Publications
Geography 8
Promila Bishnoi, PRACHI (I) Pvt. Ltd.
ICSE Geography 8
Kiran Kumar Maltiar, Bharati Bhawan
Essential ICSE Geography 8
Kiran Kumar Maltiar, Bharati Bhawan
Traverse Geography for ICSE 8
Baruna Ray Chowdhury, Madhubun
The Blue Marble
Baruna Ray Chowdhury, Madhubun
English Treasure Reader 8
Radhika Karthikeyan, Macmillan
Perfect Discovery - A Book of Science 8
Bhawna Bansal, Iconic International
Daffodils English Reader 8
Anita Bhattacharya, Rohan Book Co.
Fragrance English Reader 8
Vinita Kumar, Cordova Pub Pvt. Ltd.
Wisdom English Reader 8
Margret Annie, John Simpson, Sharda Press Pvt. Ltd.
English Redefined Course Book 8
Gowri Ramachandran, Sapphire (India) Publishers
Grammar Land 8
Chris Jacques, Orient BlackSwan
English Redefined Coursebook 8
Gowri Ramachandran, Sapphire (India) Pub.
Conquer English Course Book 8
D A Tressler, Good Luck Pub Ltd
Double Click 8
Rajni Kansal, Kriti Prakashan Ltd.
Computers 8
Gautam Sarkar, Holy Faith International (P) Ltd.
Engaging English 8 - Revised
Preeti Roychoudhury, Sadeqa, Collins
सूर्यकिरण 8
रमन मित्तल, Frank Bros & Co.
Moonbeam Course Book 8
Maryann Vaisoha, Indiannica Learning Pvt. Ltd.