ICSE Class 8 Computer Studies Question 9 of 10

Decision Control Structure — Question 10

Back to all questions
10
Question

Question 10

Create a program to display whether the entered character is in uppercase or lowercase.

public class KboatLetterCheck
{
    public static void checkLetter(char ch) {
        System.out.println("Entered character: " + ch);
        if (ch >= 65 && ch <= 90)
            System.out.println("Uppercase");
        else if (ch >= 97 && ch <= 122)
            System.out.println("Lowercase");
        else
            System.out.println("Not a letter");
    }
}
Output
BlueJ output of KboatLetterCheck.java
Answer

Source: This question is from Decision Control Structure, Computer Studies — Class 8, ICSE Board.

Key Concepts Covered

This question tests your understanding of the following concepts from the chapter Decision Control Structure: Question, Create, Program, Display, Whether, Entered. These are fundamental topics in Computer Studies that students are expected to master as part of the ICSE Class 8 curriculum.

A thorough understanding of these concepts will help you answer similar questions confidently in your ICSE examinations. These topics are frequently tested in both objective and subjective sections of Computer Studies papers. We recommend revising the relevant section of your textbook alongside practising these solved examples to build a strong foundation.

How to Approach This Question

Read the question carefully and identify what is being asked. Break down complex questions into smaller parts. Use the terminology and concepts discussed in this chapter. Structure your answer logically — begin with a definition or key statement, then provide supporting details. Review your answer to ensure it addresses all parts of the question completely.

Key Points to Remember

  • Read the question carefully and identify all parts before answering.
  • Use the terminology specific to this subject and chapter.
  • Review the textbook content for this chapter before attempting questions.
  • Practice writing concise, well-structured answers within time limits.

Practice more questions from Decision Control Structure — Computer Studies, Class 8 ICSE