SlideShare ist ein Scribd-Unternehmen logo
1 von 4
1 If the address of A[1,1] and A[2][1] are 1000 and 1010 respectively and each element
occupies 2 byte of memory, then the array has been stored in
A)
row major order
B)
column major order
C)
matrix major order
D)
None of the above
2 One difference between a queue and a stack is:
A)
Queues require dynamic memory, but stacks do not.
B)
Stacks require dynamic memory, but queues do not.
C)
Queues use two ends of the structure; stacks use only one.
D)
Stacks use two ends of the structure, queues use only one
3 Number of nodes of left and right subtree of a binary tree of the given sequence 40, 30 42,
5, 7, 23, 9, 19 is:
A)
2,5
B)
1,6
C)
6,1
D)
None of the above
4
A)
B)
C)
D)
5
A)
B)
C)
D)

9
A)
B)
C)
D)

In a class if you don’t write any keyword, default access right is
public
private
protected
none of the above

7
A)
B)
C)
D)

A)
B)
C)
D)

The infix form of the following postfix expression is A B C + * D E / (A*B+C – (D/E))
(A*(B+C) – (D/E))
((A*B)+C – (D/E))
None of the above

6
A)
B)
C)
D)

8

If the characters 'A', 'B', 'C', 'D' are placed in a queue (in that order), and then removed one
at a time, in what order will they be removed?
BCDA
ABDC
DCBA
ABCD

Which one of the following is not correct?
Base class object can be assigned to derived class object
Derived class object can be assigned to base class reference
Derived class object address can be assigned to base class pointer
Derived class object can be assigned to base class object
In which of the following hashing methods, we first divide keys into parts and then add them
to get Hash value?
Truncation Method
Folding Method
Mid Square Method
Modular Method

Which of the following operations is performed more efficiently by doubly linked list than by
singly linked list?
Deleting a node whose location is given
Searching of an unsorted list for a given item
Inverting a node after the node with given location
Traversing a list to process each node
10
A)
B)
C)
D)

11
A)
B)
C)
D)
12
A)
B)
C)
D)

An ADT is defined to be a mathematical model o f a user-defined type along with the
collection of all ________ operations on that model.
Cardinality
Assignment
Primitive
Structured

The expression + 3 * 2 * / - 3 5 4 2 equals:
-1
5
1
0
Given the sequence of numbers: 13, 52, 95, 26, 38
The sequence after the 3rd iteration of insertion sort is:
13, 26, 52, 95, 38
13, 52, 95, 26, 38
13, 26, 38, 52, 95
13, 26, 52, 95, 38
13

Given the following unbalanced tree:

M
N
P

O
Q

R
The correct balanced alternative is:
A)

M
O

P

R

Q

N

B)

N
M

P

O

Q

R

C)

Q

P
R

D)

None of the above

O
N

M
14

Considering the following circular linked list:

Head

A)
B)
C)
D)
15
A)
B)
C)
D)
16
A)
B)
C)
D)

A

B

C

The possible sequence of steps leading to the deletion of B:
i)
A -> next = B -> next; C -> prev = B -> prev; B = Null;
ii)
A -> next = A -> next -> next; C -> prev = C -> prev -> prev; B = Null;
iii)
A -> next = C -> prev; C -> prev = B-> prev; B = Null;
Which of the following options highlights the correct alternatives?
i), ii)
ii), iii)
i), ii), iii)
i), iii)
Following the heapify operation on the list: 4, 92, 65, 19, 52, 23, 75, the order (left to right) of the
values in the leaves
19, 23, 4, 65, 75
4, 19, 52, 23, 65
4, 19, 23, 65
None of the above
After the second iteration of the radix sor t, on the list: 107, 43, 90, 76, 34, 42, 84, 47, the order of
the elements is
34, 42, 43, 47, 76, 84, 90, 107
90, 42, 43, 34, 84, 76, 107, 47
107, 34, 42, 43, 47, 76, 84, 90
None of the above

17
A)
B)
C)
D)

-*+ABC^-DE+FG is the prefix equivalent of
A+B*C-D-E^F+G
AB+C*DE-FG+^ABC*+D-E^FG+None of the above

18
A)
B)
C)
D)

Breadth First Search:
Scans all incident edges, before moving on to the next vertex.
Scans adjacent unvisited vertices, as soon as possible.
Same as back tracking.
None of the above

19
A)
B)
C)
D)

The necessary conditions for “queue full” and “ queue empty” respectively are:
Full : FRONT = REAR = 0;
Empty : FRONT = REAR – 1;
Full : FRONT = 0; (REAR + 1) = n; Empty : FRONT = REAR;
Full : FRONT = REAR + 1;
Empty : FRONT = REAR – 1;
None of the above

20
A)
B)
C)
D)

Given a hash table, the technique of partition ing the key into several parts and combining the
parts in a convenient way (often using addition or multiplication) to obtain the index, is known
as:
Truncation.
Folding.
Hash – function.
Scatter – storage.

Weitere ähnliche Inhalte

Was ist angesagt?

Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)
MountAbuRohini
 
Chapter Eight(1)
Chapter Eight(1)Chapter Eight(1)
Chapter Eight(1)
bolovv
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for
Abhay Korat
 

Was ist angesagt? (20)

Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)Sample Paper 2 Class XI (Computer Science)
Sample Paper 2 Class XI (Computer Science)
 
Computer Science Sample Paper 2015
Computer Science Sample Paper 2015Computer Science Sample Paper 2015
Computer Science Sample Paper 2015
 
CBSE Sample Paper IP
CBSE Sample Paper IPCBSE Sample Paper IP
CBSE Sample Paper IP
 
Computer science sqp
Computer science sqpComputer science sqp
Computer science sqp
 
Redo midterm
Redo midtermRedo midterm
Redo midterm
 
Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)Class xi sample paper (Computer Science)
Class xi sample paper (Computer Science)
 
Sample paper i.p
Sample paper i.pSample paper i.p
Sample paper i.p
 
Model question paper_mc0061
Model question paper_mc0061Model question paper_mc0061
Model question paper_mc0061
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
important C questions and_answers praveensomesh
important C questions and_answers praveensomeshimportant C questions and_answers praveensomesh
important C questions and_answers praveensomesh
 
Quiz test JDBC
Quiz test JDBCQuiz test JDBC
Quiz test JDBC
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 
Chapter Eight(1)
Chapter Eight(1)Chapter Eight(1)
Chapter Eight(1)
 
GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...
GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...
GVKCV Computer Science(083) Pre board sample paper 2 Class 12 (20-21) with so...
 
Gsp 125 final exam guide
Gsp 125 final exam guideGsp 125 final exam guide
Gsp 125 final exam guide
 
Java Questioner for
Java Questioner for Java Questioner for
Java Questioner for
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
10. Recursion
10. Recursion10. Recursion
10. Recursion
 
GSP 125 Final Exam Guide
GSP 125 Final Exam GuideGSP 125 Final Exam Guide
GSP 125 Final Exam Guide
 

Andere mochten auch

Hscc practiceexamanswerkey-111119180828-phpapp01
Hscc practiceexamanswerkey-111119180828-phpapp01Hscc practiceexamanswerkey-111119180828-phpapp01
Hscc practiceexamanswerkey-111119180828-phpapp01
Yazeed Khalid
 
Counit1 130315103820-phpapp02
Counit1 130315103820-phpapp02Counit1 130315103820-phpapp02
Counit1 130315103820-phpapp02
Yazeed Khalid
 
Hrm bit bank iocl_ _management trainees_ _mcq'
Hrm bit bank   iocl_ _management trainees_ _mcq'Hrm bit bank   iocl_ _management trainees_ _mcq'
Hrm bit bank iocl_ _management trainees_ _mcq'
Jinni Jinni
 
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Yazeed Khalid
 
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
Yazeed Khalid
 

Andere mochten auch (20)

Operating system and C++ paper for CCEE
Operating system and C++ paper for CCEEOperating system and C++ paper for CCEE
Operating system and C++ paper for CCEE
 
Oops Paper
Oops PaperOops Paper
Oops Paper
 
Internet mcq
Internet mcqInternet mcq
Internet mcq
 
Hscc practiceexamanswerkey-111119180828-phpapp01
Hscc practiceexamanswerkey-111119180828-phpapp01Hscc practiceexamanswerkey-111119180828-phpapp01
Hscc practiceexamanswerkey-111119180828-phpapp01
 
Counit1 130315103820-phpapp02
Counit1 130315103820-phpapp02Counit1 130315103820-phpapp02
Counit1 130315103820-phpapp02
 
Hrm bit bank iocl_ _management trainees_ _mcq'
Hrm bit bank   iocl_ _management trainees_ _mcq'Hrm bit bank   iocl_ _management trainees_ _mcq'
Hrm bit bank iocl_ _management trainees_ _mcq'
 
Computer Graphics MCQ's
Computer Graphics MCQ'sComputer Graphics MCQ's
Computer Graphics MCQ's
 
DVLSI Guess paper for CDAC CCAT Jun- Jul 2013 Enterence examination
DVLSI Guess paper for CDAC CCAT Jun- Jul 2013 Enterence examination DVLSI Guess paper for CDAC CCAT Jun- Jul 2013 Enterence examination
DVLSI Guess paper for CDAC CCAT Jun- Jul 2013 Enterence examination
 
Generalized formula for Square Numbers in Hyper Dimensions
Generalized formula for Square Numbers in Hyper DimensionsGeneralized formula for Square Numbers in Hyper Dimensions
Generalized formula for Square Numbers in Hyper Dimensions
 
பல பரிமாணத்தில் அமைந்துள்ள இரண்டாம் அடுக்கு வர்க்க தொடர் எண்களின் கூட்டு தொடர...
பல பரிமாணத்தில் அமைந்துள்ள இரண்டாம் அடுக்கு வர்க்க தொடர் எண்களின் கூட்டு தொடர...பல பரிமாணத்தில் அமைந்துள்ள இரண்டாம் அடுக்கு வர்க்க தொடர் எண்களின் கூட்டு தொடர...
பல பரிமாணத்தில் அமைந்துள்ள இரண்டாம் அடுக்கு வர்க்க தொடர் எண்களின் கூட்டு தொடர...
 
Oops Paper
Oops PaperOops Paper
Oops Paper
 
CCAT Aug 2013 paper
CCAT Aug 2013 paperCCAT Aug 2013 paper
CCAT Aug 2013 paper
 
Os paper
Os paperOs paper
Os paper
 
5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...5th Semester (June; July-2015) Computer Science and Information Science Engin...
5th Semester (June; July-2015) Computer Science and Information Science Engin...
 
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02Microprocessorandmicroconrollermcq3 121116120640-phpapp02
Microprocessorandmicroconrollermcq3 121116120640-phpapp02
 
Section b a
Section b  aSection b  a
Section b a
 
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
Ibpscomputerknowledgepaperswithanswers 130123104735-phpapp02
 
24 march 2015
24 march 201524 march 2015
24 march 2015
 
P2
P2P2
P2
 
Computer question
Computer questionComputer question
Computer question
 

Ähnlich wie Cplus plus abd datastructure

300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020
tadeseguchi
 
Question 1 The syntax for accessing a class (struct) member .docx
Question 1 The syntax for accessing a class (struct) member .docxQuestion 1 The syntax for accessing a class (struct) member .docx
Question 1 The syntax for accessing a class (struct) member .docx
makdul
 

Ähnlich wie Cplus plus abd datastructure (20)

Data structure
Data structureData structure
Data structure
 
Data structure part 1
Data structure part  1Data structure part  1
Data structure part 1
 
Data structure part 2
Data structure part  2Data structure part  2
Data structure part 2
 
C programming & data structure
C programming & data structureC programming & data structure
C programming & data structure
 
AP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paperAP PGECET Computer Science 2016 question paper
AP PGECET Computer Science 2016 question paper
 
Ds qb 2021 rma
Ds qb 2021 rmaDs qb 2021 rma
Ds qb 2021 rma
 
Ee693 sept2014midsem
Ee693 sept2014midsemEe693 sept2014midsem
Ee693 sept2014midsem
 
DS Q&A
DS Q&ADS Q&A
DS Q&A
 
Data structure - mcqs
Data structure - mcqsData structure - mcqs
Data structure - mcqs
 
300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020300+ top data structures and algorithms mc qs pdf 2020
300+ top data structures and algorithms mc qs pdf 2020
 
GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004GATE Computer Science Solved Paper 2004
GATE Computer Science Solved Paper 2004
 
DS MCQS.pptx
DS MCQS.pptxDS MCQS.pptx
DS MCQS.pptx
 
Inter quiz
Inter quizInter quiz
Inter quiz
 
Gate Previous Years Papers It2005
Gate Previous Years Papers It2005Gate Previous Years Papers It2005
Gate Previous Years Papers It2005
 
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQsStd 12 Computer Chapter 9 Working with Array and String in Java important MCQs
Std 12 Computer Chapter 9 Working with Array and String in Java important MCQs
 
Cs101 endsem 2014
Cs101 endsem 2014Cs101 endsem 2014
Cs101 endsem 2014
 
NET_Solved ans
NET_Solved ansNET_Solved ans
NET_Solved ans
 
Gate Previous Years Papers
Gate Previous Years PapersGate Previous Years Papers
Gate Previous Years Papers
 
Gate-Cs 1996
Gate-Cs 1996Gate-Cs 1996
Gate-Cs 1996
 
Question 1 The syntax for accessing a class (struct) member .docx
Question 1 The syntax for accessing a class (struct) member .docxQuestion 1 The syntax for accessing a class (struct) member .docx
Question 1 The syntax for accessing a class (struct) member .docx
 

Mehr von prabhatjon

Instructions to candidates For DASDM
Instructions to candidates For DASDMInstructions to candidates For DASDM
Instructions to candidates For DASDM
prabhatjon
 
Dasdm advanced software development methodologies
Dasdm advanced software development methodologiesDasdm advanced software development methodologies
Dasdm advanced software development methodologies
prabhatjon
 

Mehr von prabhatjon (20)

Registration open for CCDAC AUG 2015 batch
Registration open for CCDAC AUG 2015 batchRegistration open for CCDAC AUG 2015 batch
Registration open for CCDAC AUG 2015 batch
 
C-CAT Exam Laptop Configuration
C-CAT Exam Laptop ConfigurationC-CAT Exam Laptop Configuration
C-CAT Exam Laptop Configuration
 
Some other Importent Question (Mix)
Some other Importent Question (Mix)Some other Importent Question (Mix)
Some other Importent Question (Mix)
 
Some question for Section C (Embeded )
Some question for Section C (Embeded )Some question for Section C (Embeded )
Some question for Section C (Embeded )
 
Instructions to candidates For DASDM
Instructions to candidates For DASDMInstructions to candidates For DASDM
Instructions to candidates For DASDM
 
Dsda
DsdaDsda
Dsda
 
Critical Aptitude Question
Critical Aptitude QuestionCritical Aptitude Question
Critical Aptitude Question
 
Cyber law ipc
Cyber law ipcCyber law ipc
Cyber law ipc
 
Ccpp pune
Ccpp puneCcpp pune
Ccpp pune
 
Delta final paper
Delta final paperDelta final paper
Delta final paper
 
Diploma in Advanced Software Development Methodologies (DASDM)
Diploma in Advanced Software Development Methodologies  (DASDM)Diploma in Advanced Software Development Methodologies  (DASDM)
Diploma in Advanced Software Development Methodologies (DASDM)
 
Noida placement comp
Noida placement compNoida placement comp
Noida placement comp
 
New Address of CDAC
New Address of CDACNew Address of CDAC
New Address of CDAC
 
Course summary@bytes
Course summary@bytesCourse summary@bytes
Course summary@bytes
 
Admission booklet pg diploma courses cdac-v4
Admission booklet pg diploma courses cdac-v4Admission booklet pg diploma courses cdac-v4
Admission booklet pg diploma courses cdac-v4
 
Pg dst admissions-list
Pg dst admissions-listPg dst admissions-list
Pg dst admissions-list
 
List of companies visited Aug 2012 batch
List of companies visited Aug 2012 batchList of companies visited Aug 2012 batch
List of companies visited Aug 2012 batch
 
New added syllabus in ditiss by aug 2013 batch
New added syllabus in ditiss by aug 2013 batchNew added syllabus in ditiss by aug 2013 batch
New added syllabus in ditiss by aug 2013 batch
 
Dasdm advanced software development methodologies
Dasdm advanced software development methodologiesDasdm advanced software development methodologies
Dasdm advanced software development methodologies
 
Dasdm advertisement
Dasdm advertisement Dasdm advertisement
Dasdm advertisement
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Cplus plus abd datastructure

  • 1. 1 If the address of A[1,1] and A[2][1] are 1000 and 1010 respectively and each element occupies 2 byte of memory, then the array has been stored in A) row major order B) column major order C) matrix major order D) None of the above 2 One difference between a queue and a stack is: A) Queues require dynamic memory, but stacks do not. B) Stacks require dynamic memory, but queues do not. C) Queues use two ends of the structure; stacks use only one. D) Stacks use two ends of the structure, queues use only one 3 Number of nodes of left and right subtree of a binary tree of the given sequence 40, 30 42, 5, 7, 23, 9, 19 is: A) 2,5 B) 1,6 C) 6,1 D) None of the above 4 A) B) C) D) 5 A) B) C) D) 9 A) B) C) D) In a class if you don’t write any keyword, default access right is public private protected none of the above 7 A) B) C) D) A) B) C) D) The infix form of the following postfix expression is A B C + * D E / (A*B+C – (D/E)) (A*(B+C) – (D/E)) ((A*B)+C – (D/E)) None of the above 6 A) B) C) D) 8 If the characters 'A', 'B', 'C', 'D' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed? BCDA ABDC DCBA ABCD Which one of the following is not correct? Base class object can be assigned to derived class object Derived class object can be assigned to base class reference Derived class object address can be assigned to base class pointer Derived class object can be assigned to base class object In which of the following hashing methods, we first divide keys into parts and then add them to get Hash value? Truncation Method Folding Method Mid Square Method Modular Method Which of the following operations is performed more efficiently by doubly linked list than by singly linked list? Deleting a node whose location is given Searching of an unsorted list for a given item Inverting a node after the node with given location Traversing a list to process each node
  • 2. 10 A) B) C) D) 11 A) B) C) D) 12 A) B) C) D) An ADT is defined to be a mathematical model o f a user-defined type along with the collection of all ________ operations on that model. Cardinality Assignment Primitive Structured The expression + 3 * 2 * / - 3 5 4 2 equals: -1 5 1 0 Given the sequence of numbers: 13, 52, 95, 26, 38 The sequence after the 3rd iteration of insertion sort is: 13, 26, 52, 95, 38 13, 52, 95, 26, 38 13, 26, 38, 52, 95 13, 26, 52, 95, 38
  • 3. 13 Given the following unbalanced tree: M N P O Q R The correct balanced alternative is: A) M O P R Q N B) N M P O Q R C) Q P R D) None of the above O N M
  • 4. 14 Considering the following circular linked list: Head A) B) C) D) 15 A) B) C) D) 16 A) B) C) D) A B C The possible sequence of steps leading to the deletion of B: i) A -> next = B -> next; C -> prev = B -> prev; B = Null; ii) A -> next = A -> next -> next; C -> prev = C -> prev -> prev; B = Null; iii) A -> next = C -> prev; C -> prev = B-> prev; B = Null; Which of the following options highlights the correct alternatives? i), ii) ii), iii) i), ii), iii) i), iii) Following the heapify operation on the list: 4, 92, 65, 19, 52, 23, 75, the order (left to right) of the values in the leaves 19, 23, 4, 65, 75 4, 19, 52, 23, 65 4, 19, 23, 65 None of the above After the second iteration of the radix sor t, on the list: 107, 43, 90, 76, 34, 42, 84, 47, the order of the elements is 34, 42, 43, 47, 76, 84, 90, 107 90, 42, 43, 34, 84, 76, 107, 47 107, 34, 42, 43, 47, 76, 84, 90 None of the above 17 A) B) C) D) -*+ABC^-DE+FG is the prefix equivalent of A+B*C-D-E^F+G AB+C*DE-FG+^ABC*+D-E^FG+None of the above 18 A) B) C) D) Breadth First Search: Scans all incident edges, before moving on to the next vertex. Scans adjacent unvisited vertices, as soon as possible. Same as back tracking. None of the above 19 A) B) C) D) The necessary conditions for “queue full” and “ queue empty” respectively are: Full : FRONT = REAR = 0; Empty : FRONT = REAR – 1; Full : FRONT = 0; (REAR + 1) = n; Empty : FRONT = REAR; Full : FRONT = REAR + 1; Empty : FRONT = REAR – 1; None of the above 20 A) B) C) D) Given a hash table, the technique of partition ing the key into several parts and combining the parts in a convenient way (often using addition or multiplication) to obtain the index, is known as: Truncation. Folding. Hash – function. Scatter – storage.