Mcq Careers
Current Affairs
Pakistan Current Affairs
World Current Affairs
Computer Competency
English
Computer Science
CCNA
Data Structures And Algorithms Mcqs
Q.1: Consider a linked list implementation of a queue with two pointers: front and rear. The time needed to insert element in a queue of length n is:
A.
O(1)
B.
O(log2n)
C.
O(n)
D.
O(n*log2n)
Q.2: If X is the adjacency matrix of a graph G with no self loops, the entries along the principle diagonal of X are ______.w
A.
all zeros
B.
all ones
C.
both zeros and ones
D.
different
Q.3: What is true of the complete bipartite graphs K(3,3) and K(2,4)?@
A.
Both are planar
B.
Neither is a planar
C.
Both are isomorphic
D.
None of these
Q.4: What is the minimum number of nodes in a complete binary tree with depth 3?K
A.
4
B.
8
C.
11
D.
15
Q.5: Which term is used to describe an O(n) algorithm?1
A.
Constant
B.
Linear
C.
Logarithmic
D.
Quadratic
Q.6: Where does the push member function place the new entry on the linked list in the linked list implementation of a queue?x
A.
At the head
B.
At the tail
C.
After all other entries that are greater than the new entry;
D.
After all other entries that are smaller than the new entry;
Q.7: Using which traversal in a sorted binary insertion tree can a sorted array of numbers be obtained?b
A.
Pre-order traversal
B.
Post-order traversal
C.
In order traversal
D.
Top-down traversal
Q.8: 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 but stacks use only one >
D.
Stacks use two ends of the structure but queues use only one<
Q.9: The post-order traversal of a binary tree starts with:6
A.
Post-order traversal of the left sub tree ,
B.
Post-order traversal of the right sub tree*
C.
Post-order traversal of the root
D.
Post-order traversal of the lowest node'
Q.10: Which situation occurs frequently if the selected hash function is poor?H
A.
Overflow
B.
Underflow
C.
Collision
D.
None of the above
Back
Go
Next
Related Mcqs
Android Programming Mcqs
Anti spam and antivirus Mcqs
Apache Mcqs
Asp Dot Net Mcqs
C Language Mcqs
C Plus Plus Mcqs
C Sharp Mcqs
CCNA Mcqs
Computer Networking Mcqs
CSS Mcqs
Data Mining Mcqs
Data Structures and Algorithms Mcqs
Dataware Housing Mcqs
Django Mcqs
DOS Mcqs
Firewall Mcqs
Hibernation Mcqs
Html Mcqs
Html5 Mcqs
Java Mcqs
Javascript Mcqs
Jquery Mcqs
Json Mcqs
Magneto Mcqs
Mysql Mcqs
Python Mcqs
Wordpress Mcqs
Apache Flex Mcqs
Apache Server Mcqs
Introduction To Programming Mcqs
JSP and Servlet Mcqs
Linux Mcqs
Oracle Database Mcqs
PostgreSql Mcqs
SAP ABAP Mcqs
Software Quality Assurance Mcqs
System Analysis Mcqs
Salesforce Development Mcqs
System Programming Mcqs
Visual Basics Mcqs
TCP and IP Mcqs
Machine Learning Mcqs
R Programming Mcqs
Rest Programming Mcqs
Swift Programming Mcqs
Virtual Private Networks VPN Mcqs
Checkpoint Security Mcqs
Unity 3D Mcqs
Bootstrap Mcqs
Information Technology Mcqs
Programming Languages Mcqs
Signals and Systems Mcqs
Web Programming Mcqs
Windows 10 Mcqs
Go Programming Mcqs
Applet Mcqs
java AWT and Swing Mcqs
IP Addressing and Routing Mcqs
Application Software Mcqs
Artificial Intelligence Mcqs
Information System and Security Mcqs
Data Transmission Mcqs
Data Security Mcqs
Central Processing Unit Mcqs
Hard Drive Mcqs
All Subject Mcqs
Pakistan Studies Mcqs
Biology Mcqs
Accounting Mcqs
Agriculture Mcqs
Auditing Mcqs
Checmical Engineering Mcqs
Chemistry Mcqs
Civil Engineering Mcqs
Computer Science Mcqs
Economics Mcqs
Electrical Engineering Mcqs
English Mcqs
English Literature Mcqs
Everyday Science Mcqs
Finance Mcqs
General Knowledge Mcqs
Human Resource Management Mcqs
Islamic Studies Mcqs
Judiciary and law Mcqs
Marketing Mcqs
Mathematics Mcqs
Mechanical Engineering Mcqs
Medical Mcqs
Pakistan Studies Mcqs
Pedagogy Mcqs
Physics Mcqs
Political Science Mcqs
Psychology Mcqs
Sociology Mcqs
Software Engineering Mcqs
Statistics Mcqs
IT and Programming Mcqs
Graphic Design and Multimedia Mcqs
Aptitude Test Mcqs
Current Affairs Mcqs