English

ISC (Science) ISC Class 12 - CISCE Important Questions

Advertisements
Subjects
Topics
Subjects
Popular subjects
Topics

Please select a subject first

Advertisements
Advertisements
< prev  321 to 340 of 817  next > 

Answer the following question on the diagram of a Binary Tree given below:

Write the pre-order and post-order traversal of the above tree structure.

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

A Queue is a linear data structure in which the operations are performed based on FIFO (First In First Out).

Define a class Queue with the following details:

Class name Queue
Data member/instance variable:
dat[ ] array to hold the integer elements
cap stores the maximum capacity of the queue
front to point the index of the front
rear to point the index of the rear
Member functions/methods:
Queue(int max) constructor to initialize the data member cap = max, front = rear = 0 and create the integer array
void add_dat(int v) to add integers from the rear index if possible else display the message(“Queue full”)
int pop_dat( ) to remove and return elements from front, if any, else returns -999
void display() to display elements of the queue

Specify the class Queue giving the details of void add_dat(int) and int pop_dat( ). Assume that the other functions have been defined.

The main( ) function and algorithm need NOT be written.

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Basic Data Structures (Stack, Queue, Dequeue)

What is the importance of the reference part in a Linked List?

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

Convert the following infix notation to prefix notation.

(A - B)/C * (D + E)

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Conversion of Infix to Prefix and Post Fix Notations

A double ended queue is a linear data structure which enables the user to add and remove integers from either ends i.e., from front or rear.

The details for the class deQueue are given below:

Class name deQueue

Data members/instance variables:

Qrr[] array to hold integer elements
lim maximum capacity of the dequeue
front to point the index of the front end
rear  to point the index of the rear end

Methods/Member functions:

deQueue(int 1) constructor to initialise lim = 1, front = 0 and rear =0
void addFront(int v) to add integers in the dequeue at the front end if possible, otherwise display the message “OVERFLOW FROM FRONT”
void addRear(int v) to add integers in the dequeue at the rear end if possible, otherwise, display the message “OVERFLOW FROM REAR”
int popFront() removes and returns the integers from the front end of the dequeue if any, else returns — 999
int popRear ( )  removes and returns the integers from the rear end of the dequeue if any, else returns — 999
void show( ) displays the elements of the dequeue

Specify the class deQueue giving details of the function void addFront(int) and int popFront(). Assume that the other functions have been defined. The main() function and algorithm need NOT be written.

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Basic Data Structures (Stack, Queue, Dequeue)

Differentiate between a stack and a queue.

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Basic Data Structures (Stack, Queue, Dequeue)

Answer the following questions from the diagram of a Binary Tree given below:

  1. Write the pre-order traversal of the above tree structure.
  2. Name the parent of the nodes D and B. 
  3. State the level of nodes E anf F when the root is at level 0.
Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

Convert the following infix notation to postfix form.

(P + Q * R - S)/T * U

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Conversion of Infix to Prefix and Post Fix Notations

CardGame is a game of mental skill, built on the simple premise of adding and removing the cards from the top of the card pile.

The details of the class CardGame are given below.

Class name CardGame
Data members/instance variables:
cards[] array to store integers as cards
cap to store the maximum capacity of array
top to store the index of the topmost element of the array
Methods/Member functions:
CardGame(int cc) constructor to initialise cap=cc and top= -1
void addCard(int v) to add the card at the top index if possible, otherwise display the message “CARD PILE IS FULL”
int drawCard( ) to remove and return the card from the top index of the card pile, if any, else return the value -9999
void display( ) to display all the cards of card pile
  1. Specify the class CardGame giving details of the functions void addCard(int) and int drawCard( ). Assume that the other functions have been defined.
    The main() function and algorithm need NOT be written.
  2. Name the entity described above and state its principle.
Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Implementation Directly Through Classes

Answer the following questions based on the diagram of a Binary Tree given below:

  1. Name the external nodes of the tree.
  2. State the degree of node M and node L.
  3. Write the post-order traversal of the above tree structure.
Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

Convert the following infix notation to prefix form.

( A – B ) / C * ( D + E )

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Conversion of Infix to Prefix and Post Fix Notations

Recycle is an entity which can hold at the most 100 integers. The chain enables the user to add and remove integers from both the ends i.e. front and rear.

Define a class ReCycle with the following details:

Class name ReCycle
Data members/instance variables:
ele[ ] the array to hold the integer elements
cap stores the maximum capacity of the array
front to point the index of the front
rear to point the index of the rear
Methods / Member functions:
ReCycle (int max) constructor to initialize the data cap = max, front = rear = 0 and to create the integer array.
void pushfront(int v) to add integers from the front index if possible else display the message(“full from front”).
int popfront( ) to remove the return elements from front. If array is empty then return-999
void pushrear(int v) to add integers from the front index if possible else display the message(“full from rear”).
int poprear( ) to remove and return elements from rear. If the array is empty then return-999.
  1. Specify the class ReCycle giving details of the functions void pushfront(int) and int poprear( ). Assume that the other functions have been defined.
    The main( ) function and algorithm need NOT be written.
  2. Name the entity described above and state its principle.
Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Basic Algorithms and Programs Using the Above Data Structures

A linked list is formed from the objects of the class Node. The class structure of the Node is given below:

class Node
{
      int n;
      Node link;
}

Write an Algorithm OR a Method to search for a number from an existing linked list. The method declaration is as follows:

void FindNode( Node str, int b)

Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

Answer the following questions from the diagram of a Binary Tree given below:

  1. Name the root of the left sub tree and its siblings.
  2. State the size and depth of the right sub tree.
  3. Write the in-order traversal of the above tree structure.
Appears in 1 question paper
Chapter: [13] Data Structures
Concept: Recursive Data Structures - Single Linked List (Algorithm and Programming), Binary Trees, Tree Traversals (Conceptual)

Write the minterm of F(A, B, C, D) when A = 1, B = 0, C = 0 and D = 1.

Appears in 1 question paper
Chapter: [14] Complexity and Big O Notation
Concept: Big O Notation for Computational Complexity

With the help of an example, briefly explain the dominant term in complexity.

Appears in 1 question paper
Chapter: [14] Complexity and Big O Notation
Concept: Importance of Dominant Term

For Big O notation, state the difference between O(n) and O(n2 ).

Appears in 1 question paper
Chapter: [14] Complexity and Big O Notation
Concept: Big O Notation for Computational Complexity

How old was Jem when he broke his arm?

Appears in 1 question paper
Chapter: [1] Prose and Drama
Concept: Prose and Drama

The first chapter focusses on telling stories. This primarily serves to ______.

Appears in 1 question paper
Chapter: [1] Prose and Drama
Concept: Prose and Drama

What literary significance does Mr Radley’s sealing the knot-hole in the tree have?

Appears in 1 question paper
Chapter: [1] Prose and Drama
Concept: Prose and Drama
< prev  321 to 340 of 817  next > 
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×