Trending ▼   ResFinder  

ICSE Class X Question Bank 2027 : Computer Applications

8 pages, 0 questions, 0 questions with responses, 0 total responses,    0    0
Akansha Akansha
  
+Fave Message
 Home > lkoakansha >

Formatting page ...

60 Questions with Answers Section A MCQs 1. Which of the following is a valid Java identifier? a) 2value b) my_value c) class d) my-value Answer: b) my_value 2. Which keyword is used to declare a constant? a) const b) final c) static d) constant Answer: b) final 3. Which data type stores a single character? a) String b) char c) character d) text Answer: b) char 4. Which of the following is a primitive data type? a) String b) Integer c) int d) Scanner Answer: c) int 5. What is the size of an int in Java? a) 8 bits b) 16 bits c) 32 bits d) 64 bits Answer: c) 32 bits 6. What is the size of a char? a) 8 bits b) 16 bits c) 32 bits d) 64 bits Answer: b) 16 bits 7. Which escape sequence represents a new line? a) \t b) \b c) \n d) \r Answer: c) \n 8. Which symbol terminates a Java statement? a) : b) ; c) . d) , Answer: b) ; 9. Which is a non-primitive data type? a) int b) char c) boolean d) String Answer: d) String 10. Which keyword is used to create an object? a) class b) object c) new d) create Answer: c) new 11. Which is a valid character literal? a) "A" b) 'A' c) A d) `A` Answer: b) 'A' 12. Which is a valid String literal? a) 'Hello' b) "Hello" c) Hello d) (Hello) Answer: b) "Hello" 13. Which keyword declares a class? a) define b) class c) structure d) object Answer: b) class 14. Which data type stores true or false? a) bool b) Boolean c) boolean d) bit Answer: c) boolean 15. What is the size of byte? a) 4 bits b) 8 bits c) 16 bits d) 32 bits Answer: b) 8 bits Section B Fill in the Blanks 16. Java is a ______ sensitive language. Answer: case 17. \t represents a ______. Answer: tab 18. A value assigned to a variable is called a ______. Answer: literal/value 19. int, char, and double are ______ data types. Answer: primitive 20. A variable declared using final is called a ______. Answer: constant 21. The default value of an instance variable of type int is ______. Answer: 0 22. The default value of an instance variable of type boolean is ______. Answer: false 23. The default value of an instance variable of type char is ______ (\u0000). Answer: null character 24. The default value of a reference variable is ______. Answer: null 25. A sequence of characters enclosed in double quotes is called a ______ literal. Answer: String Section C True/False 26. Java identifiers can begin with a digit. Answer: False 27. Student and student are different identifiers. Answer: True 28. main is a Java keyword. Answer: False 29. int is a Java keyword. Answer: True 30. String is a primitive data type. Answer: False 31. A constant cannot be modified after initialization. Answer: True 32. \n moves the cursor to the next line. Answer: True 33. A Java statement normally ends with a semicolon. Answer: True 34. 123abc is a valid identifier. Answer: False 35. total_marks is a valid identifier. Answer: True Section D Predict the Output 36. System.out.println("Hello\nWorld"); Answer: Hello World 37. System.out.println("A\tB"); Answer: A B 38. char ch = 'A'; System.out.println(ch); Answer: A 39. int a = 10; double b = a; System.out.println(b); Answer: 10.0 40. double x = 12.8; int y = (int)x; System.out.println(y); Answer: 12 41. System.out.println("Java" + 10); Answer: Java10 42. System.out.println(10 + 20 + "Java"); Answer: 30Java 43. System.out.println("Java" + 10 + 20); Answer: Java1020 44. char ch = '\n'; System.out.println("A" + ch + "B"); Answer: A B 45. int a = 5; System.out.println(a); Answer: 5 Section E Assertion and Reason For Questions 46 50: A: Both Assertion and Reason are true and Reason correctly explains Assertion. B: Both are true but Reason does not explain Assertion. C: Assertion is true but Reason is false. D: Assertion is false but Reason is true. 46. Assertion: Java is case-sensitive. Reason: Age and age are treated as different identifiers. Answer: A 47. Assertion: int is a primitive data type. Reason: It stores integer values directly. Answer: A 48. Assertion: String is a primitive data type. Reason: String is a class in Java. Answer: D 49. Assertion: A final variable cannot normally be reassigned. Reason: final makes a variable constant after initialization. Answer: A 50. Assertion: \n is an escape sequence. Reason: It represents a newline. Answer: A Section F Short Answer 51. What is a token? Answer: A token is the smallest individual unit of a Java program. 52. Name four types of Java tokens. Answer: Keywords, identifiers, literals and operators. 53. What is an identifier? Answer: A name given to a class, method, variable or other program element. 54. What is a keyword? Answer: A reserved word having a predefined meaning in Java. 55. Give two examples of separators. Answer: ( and , 56. Give two examples of punctuators. Answer: ; and {} 57. What is widening conversion? Answer: Automatic conversion of a smaller compatible data type into a larger data type. 58. Give an example of widening conversion. Answer: int x = 10; double y = x; 59. What is narrowing conversion? Answer: Explicit conversion of a larger data type into a smaller compatible data type. 60. Write the declaration of a constant PI having value 3.14. Answer: final double PI = 3.14;

Formatting page ...

Related ResPapers
ICSE Class X Question Bank 2025 : Computer Applications
by arshadali 
ICSE Class X Question Bank 2025 : Computer Applications
by krishna181 
ICSE Class X Question Bank 2027 : Computer Applications
by lkoakansha 
ICSE Class X Question Bank 2023 : Computer Applications : Computer
by akki_2007 

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

Formatting page ...

 

  Print intermediate debugging step

Show debugging info


 

 


© 2010 - 2026 ResPaper. Terms of ServiceContact Us Advertise with us

 

lkoakansha chat