हिंदी

ISC (Science) ISC Class 12 - CISCE Question Bank Solutions

Advertisements
[object Object]
[object Object]
विषयों
मुख्य विषय
अध्याय

Please select a subject first

Advertisements
Advertisements
< prev  261 to 280 of 889  next > 

Answer the following questions related to the below image:

  1. What is the output of the above gate if input A=0, B=1?
  2. What are the values of the inputs if output =1?
[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

Given are two strings, input string and a mask string that remove all the characters of the mask string from the original string.

Example: INPUT: ORIGINALSTRING: communication
    MASK STRING: mont
  OUTPUT: cuicai  

A class StringOp is defined as follows to perform above operation.

Some of the members of the class are given below:

Class name StringOp
Data members/instance variables:
str to store the original string
msk to store the mask string
nstr to store the resultant string
Methods / Member functions:
StringOp() default constructor to initialize the data member with legal initial value
void accept( ) to accept the original string str and the mask string msk in lower case
void form() to form the new string nstr after removal of characters present in mask from the original string
void display( ) to display the original string and the newly formed string nstr

Specify the class StringOp giving details of the constructor( ), void accept( ), void form() and void display( ). Define a main( ) function to create an object and call all the functions accordingly to enable the task.

[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

Advertisements

A class Mixarray contains an array of integer elements along with its capacity (More than or equal to 3). Using the following description, form a new array of integers which will contain only the first 3 elements of the two different arrays one after another.

Example:

Array1: { 78, 90, 100, 45, 67 }

Array2: {10, 67, 200, 90 }

Resultant Array: { 78, 90, 100, 10, 67, 200}

The details of the members of the class are given below:

Class name Mixarray
Data members/instance variables:
arr[] integer array
cap integer to store the capacity of the array
Member functions/methods:
Mixarray (int mm ) to initialize the capacity of the array cap=mm
void input( ) to accept the elements of the array
Mixarray mix(Mixarray P, Mixarray Q) returns the resultant array having the first 3 elements of the array of objects P and Q
void display( ) to display the array with an appropriate message.

Specify the class Mixarraygiving details of the constructor(int), void input( ), Mixarray mix(Mixarray,Mixarray) and void display( ). Define a main( ) function to create objects and call all the functions accordingly to enable the task.

[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

Write the statement in Java to extract the word “MISS” from the word “SUBMISSION”.

[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

What is the output of the statement given below?

System.out.print("FAN" + ("AUTOMATIC".charAt(5) ) );
[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

A class Fibo has been defined to generate the Fibonacci series 0, 1, 1, 2, 3, 5, 8, 13, ……. (Fibonacci series are those in which the sum of the previous two terms is equal to the next term).

Some of the members of the class are given below:

Class name Fibo
Data member/instance variable:
start integer to store the start value
end integer to store the end value
Member functions/methods:
Fibo( ) default constructor
void read( ) to accept the numbers
int fibo(int n) return the nth term of a Fibonacci series using recursive technique
void display( ) displays the Fibonacci series from start to end by invoking the function fibo()

Specify the class Fibo, giving details of the Constructor, void read( ), int fibo(int), and void display( ). Define the main() function to create an object and call the functions accordingly to enable the task.

[11] Recursion
Chapter: [11] Recursion
Concept: undefined >> undefined

A class Gcd has been defined to find the Greatest Common Divisor of two integer numbers. Some of the members of the class are given below:

Class name Gcd
Data member/instance variable:
num1 integer to store the first number
num2 integer to store the second number
Member functions/methods:
Gcd( ) default constructor
void accept( ) to accept the numbers
int gcd(int x,int y) return the GCD of the two numbers x and y using recursive technique
void display( ) displays the result with an appropriate message

Specify the class Gcd, giving details of the Constructor, void accept( ), int gcd(int,int), and void display( ). Define the main() function to create an object and call the functions accordingly to enable the task.

[11] Recursion
Chapter: [11] Recursion
Concept: undefined >> undefined

A super class Godown has been defined to store the details of the stock of a retail store. Define a subclass Update to store the details of the items purchased with the new rate and update the stock. Some of the members of both the classes are given below:

Class name Godown
Data members/instance variables:
item to store the name of the item
qty to store the quantity of an item in stock
rate to store the unit price of an item
amt to store the net value of the item in stock
Member functions/methods:
Godown(…) parameterized constructor to assign value to the data members
void display( ) to display the stock details

 

Class name Update
Data members/instance variables:
pur_qty to store the purchase quantity
pur_rate to store the unit price of the purchased item
Member functions/methods:
Update(…) parameterized constructor to assign values to the data members of both the classes
void update( ) to update the stock by adding the previous quantity by the purchased quantity and replace the rate of the item if there is a difference in the purchase rate. Also update the current stock value as:
(quantity * unit price)
void display( ) to display the stock details before and after updating

Assume that the super class Godown has been defined. Using the concept of inheritance, specify the class Update giving details of the constructor, void update ( ) and void display( ).

The super class, main function and algorithm need NOT be written.

[12] Inheritance and Polymorphism
Chapter: [12] Inheritance and Polymorphism
Concept: undefined >> undefined

State any one purpose of using the keyword this in Java programming.

[5] Objects
Chapter: [5] Objects
Concept: undefined >> undefined

A matrix M[- 6, ... 10, 4 ... 15] is stored in the memory with each element requiring 4 bytes of storage. If the base address is 1025, find the address of M [4] [8] when the matrix is stored in Column Major wise.

[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

Differentiate between half adder and full adder. Write the Boolean expression and draw the logic circuit diagram for the SUM and CARRY of a full adder.

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

What is an encoder?

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

How is Encoder different from a decoder?

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

A class Sort Alpha has been defined to sort the words in the sentence in alphabetical order.

Example: Input: THE SKY IS BLUE
Output: BLUE IS SKY THE

Some of the members of the class are given below:

Class name Short Alpha

Data members/instance variables:

sent

 to store a sentence

n integer to store the number of
words in a sentence

Methods/Member functions:

ShortAlpha( )

default constructor to initialise data members with legal initial values

void acceptsent( ) to accept a sentence in UPPERCASE
void short(SortAlpha P) sorts the words of the sentence of object P in alphabetical order and stores the sorted sentence in the current object
void display( ) display the original sentence along with the sorted sentence by invoking the method sort( )

Specify the class Sort Alpha giving details of the constructor (), void acceptsent(), void sort (Sort Alpha) and void display(). Define a main()function to create an object and call the functions accordingly to enable the task.

[10] Arrays, Strings
Chapter: [10] Arrays, Strings
Concept: undefined >> undefined

When a sequence of OR, NOT, NOR are connected in series, the logic gate obtained is ______.

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

Idempotence Law states that ______.

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined

Assertion: Recursive data structure follows the LIFO principle.

Reason: Execution of recursive code follows the concepts of data structure Queue.

[11] Recursion
Chapter: [11] Recursion
Concept: undefined >> undefined

State any one difference between instance variable and class variable.

[5] Objects
Chapter: [5] Objects
Concept: undefined >> undefined

The following function is a part of some class:

int jolly(int[] x, int n, int m)
  {
if (n<0)
  return m;
else if(n<x.length)
  m=(x[n]>m)?x[n]:m;
return jolly(x, --n, m);
  }
  1. What will be the output of jolly() when the value of x[ ]={6,3,4,7,1}, n=4 and m=0?
  2. What function does jolly() perform, apart from recursion?
[11] Recursion
Chapter: [11] Recursion
Concept: undefined >> undefined

Draw the logic gate diagram for the reduced expression. Assume that the variables and their complements are available as inputs.

[2] Computer Hardware
Chapter: [2] Computer Hardware
Concept: undefined >> undefined
< prev  261 to 280 of 889  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×