Arrays, Strings - ISC Class 12 Computer Science Questions with Answers
48 past-paper questions on Arrays, Strings from ISC Class 12 Computer Science papers (2026-2017), newest first. Open one to see its answer.
- A matrix G[3...7, 2...5] is stored in the memory, with each element requiring 4 bytes of storage. If the address of G[5][4] is… 2026 · 2 marks · Numerical
- Design a class PendulumS to perform an operation on a word containing alphabets in upper case only. Rearrange the word by putting… 2026 · 10 marks · Program
- An array $Arr[3 \dots 8, -5 \dots 5]$ is stored Row Major Wise. The address of $Arr[5][-2]$ is $5120$. If each element occupies… 2026 · 2 marks · One word
- A matrix $M[-1...10, 4....13]$ is stored in the memory with each element requiring 2 bytes of storage. If the base address is… 2025 · 2 marks · Numerical
- The code snippet given below will result in: … 2025 · 1 mark · MCQ
- For the following code snippet choose the correct output: … 2025 · 1 mark · MCQ
- Assume int [ ] [ ] x = { {8,9} , {5,6,7},{1,2,3,4}}, what are x[0].length, x[1].length, and x[2].length? 2025 · 1 mark · MCQ
- The java statement to print the position of 2nd occurrence of the letter 'I' within the word "MICHIGAN". 2025 · 1 mark · Short answer
- In Java, the String class is used to create and manipulate strings, and it is immutable. Given below are two statements marked… 2025 · 1 mark · Assertion-reason
- A matrix $M[-6 \dots 10, 4 \dots 15]$ is stored in the memory with each element requiring 4 bytes of storage. If the base address… 2025 · 2 marks · Numerical
- Find the output of the following snippet: … 2025 · 1 mark · Short answer
- What is the outcome of the following code snippet: … 2025 · 1 mark · MCQ
- m and n are two StringBuffer objects. The method call, m.append(n) will: 2025 · 1 mark · MCQ
- … How many String objects are created in the above snippet? Justify your answer. 2025 · 1 mark · Short answer
- A class Mixarray contains an array of integer elements along with its capacity (More than or equal to 3). Using the following… 2025 · 10 marks · Program
- [Programme based on Strings] Two words are called anagram of each other if both the words contain the same letters but they are… 2025 · 10 marks · Program
- Find the output: … 2025 · 1 mark · Short answer
- What is the length of the array int arr[ ], if its first index is $x$ and the last index is $y$ ? 2025 · 1 mark · Short answer
- String Description StringA Password entered by the user StringB Password stored by the system Passwords are stored as two… 2025 · 1 mark · MCQ
- A matrix $P[-10\dots10, 1\dots10]$ is stored in the memory with each element requiring 2 bytes of storage. If the base address is… 2025 · 2 marks · Numerical
- [Arrays] Given below is an example of a double dimensional array with unequal number of rows and columns. It must be arranged in… 2025 · 10 marks · Program
- Find the output of following snippet: … 2025 · 1 mark · Short answer
- A class InsSort contains an array of integers which sorts the elements in a particular order. Some of the members of the class… 2024 · 10 marks · Program
- An array ARR [ -5 .....15, 10.....20 ] stores elements in Row Major Wise with each element requiring 2 bytes of storage. Find the… 2024 · 2 marks · Numerical
- Design a class Coding to perform some string related operations on a word containing alphabets only. Example: Input: “Java”… 2024 · 10 marks · Program
- An array ARR[ −4 …..6, −2…..12] , stores elements in Row Major Wise, with the address ARR[2][3] as 4142. If each element requires… 2024 · 2 marks · One word
- A matrix $M[-6\dots 10, 4\dots 15]$ is stored in the memory with each element requiring $4$ bytes of storage. If the base address… 2023 · 2 marks · One word
- A class SortAlpha has been defined to sort the words in the sentence in alphabetical order. Example: Input: THE SKY IS BLUE… 2023 · 10 marks · Program
- A class Trans is defined to find the transpose of a square matrix. A transpose of a matrix is obtained by interchanging the… 2023 · 10 marks · Program
- Design a class OddEven to arrange two single dimensional arrays into one single dimensional array, such that the odd numbers from… 2023 · 10 marks · Program
- A matrix N[11][8] is stored in the memory with each element requiring 2 bytes of storage. If the base address at N[2][3] is 2140… 2023 · 2 marks · Numerical
- A class Encrypt has been defined to replace only the vowels in a word by the next corresponding vowel and forms a new word. i.e… 2023 · 10 marks · Program
- What is the output of the statement given below? … 2022 · 1 mark · Short answer
- What is the conditional statement to check for the Non-boundary elements in a double dimensional array of ‘M’ number of rows and… 2022 · 2 marks · MCQ
- Write the statement in Java to extract the word “MISS” from the word “SUBMISSION”. 2022 · 1 mark · Short answer
- With reference to the program code given below, answer the following question: … What will be the output of the method dimen()… 2022 · 2 marks · MCQ
- With reference to the program code given below, answer the following question: … What is the method dimen() performing? 2022 · 1 mark · MCQ
- With reference to the program code given below, answer the following question: … What is the method single() performing? 2022 · 1 mark · MCQ
- A matrix MAT[10][15] is stored in the memory in Row Major Wise with each element requiring 2 bytes of storage. If the base… 2022 · 2 marks · MCQ
- With reference to the program code given below, answer the following question: … What will be the output of the method single()… 2022 · 2 marks · MCQ
- Write a program to accept a sentence which may be terminated by either ‘.’ , ‘?’ or ‘!’ only. The words are to be separated by a… 2021 · 15 marks · Program
- Each element of an array $arr[15][20]$ requires '$W$' bytes of storage. If the address of $arr[6][8]$ is 4440 and the Base… 2020 · 2 marks · Numerical
- A matrix $B[10][20]$ is stored in the memory with each element requiring 2 bytes of storage. If the base address at $B[2][1]$ is… 2020 · 2 marks · Numerical
- A matrix ARR[ – 4…6, 3….8] is stored in the memory with each element requiring 4 bytes of storage. If the base address is 1430… 2019 · 2 marks · Numerical
- A matrix A[m][m] is stored in the memory with each element requiring 4 bytes of storage. If the base address at A[1][1] is 1500… 2018 · 2 marks · One word
- A matrix $P[15][10]$ is stored with each element requiring 8 bytes of storage. If the base address at $P[0][0]$ is 1400… 2017 · 2 marks · One word
- A class Adder has been defined to add any two accepted time. Example: Time A - 6 hours 35 minutes Time B - 7 hours 45 minutes… 2017 · 10 marks · Program
- A class SwapSort has been defined to perform string related operations on a word input. Some of the members of the class are as… 2017 · 10 marks · Program
Other Computer Science chapters
- Computer Hardware 55 questions
- Implementation of algorithms to solve problems 20 questions
- Programming in Java (Review of Class XI Sections B and C) 3 questions
- Objects 48 questions
- Primitive values, Wrapper classes, Types and casting 11 questions
- Variables, Expressions 2 questions
- Statements, Scope 4 questions
- Methods 13 questions
- Recursion 30 questions
- Inheritance, Interfaces and Polymorphism 44 questions
- Data structures 71 questions
- Complexity and Big O notation 15 questions
- Boolean Algebra 177 questions