Become a GOLD member of Deccansoft and get access to 40+ courses!!
NewBatches/Webinars
Packages
Gold Membership
Bestseller
Microsoft Azure Suite & Suite Plus
Power Platform Acadamy
New
Azure DevOps Expert & Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Courses
MS.NET Courses (Includes Live Project)
Complete C#, OOPs and Windows Programing
ASP.NET MVC Online Training
ASP.NET WebForms
ASP.NET Core
WCF incl. Web Services and Remoting
WPF incl. MVVM and Prism
LINQ and Entity Framework
Live Project Training for Developing Enterprise Application
Live Project using Ntier Arch (.NET5 + EF Core + Angular)
Gold Membership
CareerStep IT Program
Client-side UI Technologies
Building Static Web Pages using HTML and CSS
JavaScript and HTML DOM
jQuery, AJAX and JSON
Building Interactive Web Pages using HTML5 and CSS3
BootStrap + Live Examples
AngularJS + Live Project
Angular + Typescript
ReactJS
KnockoutJS
Xamarin
SQL Server + MSBI
SQL Server 2017
Querying Data with Transact-SQL(70-761)
SQL Server Integration Service (SSIS)
SQL Server Reporting Service (SSRS)
SQL Service Analysis Service (SSAS)
Cloud Computing / Azure / AWS
AZ-900: Microsoft Azure Fundamentals
Azure Suite (AZ-104+AZ-204+AZ-305+ AZ-500)
AZ-104: Microsoft Azure Administrator
AZ-204: Developing Solutions for Microsoft Azure
AZ-305: Microsoft Azure Architect Technologies and Design
AZ-400: Microsoft Azure DevOps
DP-203: Data Engineering on Microsoft Azure
Amazon Web Services (AWS)
Testing Tools
Manual Testing
Selenium Testing with Java(Live Training)
SharePoint
SharePoint 2013
Microsoft Power Platform
Microsoft Power Platform
Data Analytics using PowerBI (DA-100)
DevOps
Docker
Kubernetes
Microservices using .NET Core
Others
C and Data Structure
Core Java
OOPs and C++
Advance Java
Python Programming
Complete Azure Training
Pricing
Videos
Testimonials
Azure Certification
Contact Us
Login
Login or Register
×
Sign In
Register
Forgot Password?
How did you find us
WhatsApp
YouTube
LinkedIn
Facebook
Telegram
Twitter
Google
Referred by Friend
Refresh
Input symbols
By clicking Register, you accept to the
terms and conditions
and that you have read our
privacy policy.
Recover Password
×
Submit
Enquiry Now
Where did you come to know about us
WhatsApp
YouTube
LinkedIn
Facebook
LinkedIn Ad
Email
Twitter
Google
Referred
Other
Refresh
Input symbols
Linked List
Interview Questions and Answer
1. In single linked list which operations depends on the length of the list?
Options:
a. Delete the last element of the list
b. Add an element before the first element of the list
c. Delete the first element of the list
d. Inter change the first two elements of the list
Reveal Answer
2. Which of the following segment of code deletes the element pointed to by X from the double linked list, if it is assumed that X points to the first element of the list and start pointer points to beginning of the list?
Options:
a. X->bwd=X->fwd; X->fwd=X->bwd;
b. start=x->fwd; start->bwd=NULL;
c. start=x->fwd; x->fwd=NULL;
d. x->bwd->bwd=x->bwd; x->fwd->fwd=x->fwd;
Reveal Answer
3. Which among the following segment of code deletes the element pointed to by x from the double linked list, if it is assumed that X points to the last element of the list?
Options:
a. X->fwd->bwd=NULL;
b. X->bwd->fwd=x->bwd;
c. X->bwd->fwd=NULL;
d. X->fwd->bwd=x->bwd;
Reveal Answer
4. Which among the following segment of code counts the number of elements in the double linked list, if it is assumed that X points to the first element of the list and ctr is the variable which counts the number of elements in the list?
Options:
a. for(ctr=1;x!=NULL;ctr++) x=x->fwd;
b. for(ctr=1;x!=NULL;ctr++) x=x->bwd;
c. for(ctr=1;x->fwd!=NULL;ctr++) x=x->fwd;
d. for(ctr=1;x->bwd!=NULL;ctr++) x=x->bwd;
Reveal Answer
5. Which among the following segment of code counts the number of elements in the double linked list, if it is assumed that X points to the last element of the list and ctr is the variable which counts the number of elements in the list?
Options:
a. for(ctr=1;x!=NULL;ctr++) x=x->fwd;
b. for(ctr=1;x!=NULL;ctr++) x=x->bwd;
c. for(ctr=1;x->fwd!=NULL;ctr++) x=x->fwd;
d. for(ctr=1;x->bwd!=NULL;ctr++) x=x->bwd;
Reveal Answer
6. Which among the following segments of inserts a new node pointed by X to be inserted at the end of the double linked list? The start and last pointer points to beginning and end of the list respectively.
Options:
a. X->bwd=x->fwd; x->fwd=x->bwd;
b. X->fwd=start; ltart->bwd=x;
c. last->fwd=x; x->bwd=last;
d. x->bwd=x->bwd; x->fwd=last;
Reveal Answer
7. A single linked list is declared as follows: struct slist { struct slist *next; int data; } Where among the following segments of code deletes the element pointed to by x from the single linked list, if it is assumed that x points to neither the first nor last element of the list? prev pointer points to previous element.
Options:
a. prev->next=x->next; free(x);
b. x->next=prev->next; free(x);
c. prev->next=x->next; free(prev);
d. x->next=prev->next; free(prev);
Reveal Answer
8. Which among the following segment of code deletes the element pointed to by X from the single linked list, if it is assumed that X points to the last element of the list and prev pointer points to last but one element?
Options:
a. prev->next=NULL; free(prev);
b. x->next=NULL; free(X);
c. prev->next=NULL; free(X);
d. x->next=prev; free(prev);
Reveal Answer
9. Which among the following segments of code inserts a new node pointed by X to be inserted at the beginning of the single linked list? The start pointer points to beginning of the list.
Options:
a. Start->next=x; X=start;
b. X->next=start; Start=X;
c. X->next=start->next; Start=X;
d. X->next=start; Start=x->next;
Reveal Answer
10. Which of the following segments of code inserts a new node pointed by x to be inserted at the end of the circular double linked list? The start pointer points to beginning of the list
Options:
a. X->bwd=start; X->fwd=start->fwd; Start->bwd->fwd=X; Start=X;
b. X->bwd=star->bwdt; X->fwd=start; Start->bwd-=X; Start=X;
c. X->bwd=start->bwd; X->fwd=start; Start->bwd->fwd=X; Start->bwd=x;
Reveal Answer
Packages
Gold Membership
Microsoft Azure Suite &Suite Plus
Azure DevOps Expert &Expert Plus
MS.NET Foundation For Beginners
MS.NET Full Stack Developer
UI / Web Development
SQL Server & MSBI Tools
Software Testing
Resources
Blog
Deccansoft
AzureA2Z
Wall of Fame
On-Job Tech Support
About
About BestDotNetTraining
About Trainer
Testimonials
FAQ
Other links
About Us
Contact Us
Leave us a feedback
Sitemap
Privacy Policy
Terms & Conditions
Proudly Powered by