PRN292c_-_FA_2023_-_1_1180.webp
lanhoa86

PRN292c_-_FA_2023_-_1_1180.webp

  • Media owner lanhoa86
  • Ngày thêm
(Choose 1 answer)
What is the output of the below code?LinkedList<char> L=new LinkedList<char>(); //line 1
LinkedListNode<char> N = L.AddFirst('A'); //line 2
L.AddLast('B');L.AddAfter(N,'C');
//line 3 //line 4
L.AddBefore(N.Next, 'D');//line 5
foreach(char e in L)//line 6 //line 7
{ Console.Write(e);//line 8
}
A. ADCB
B. ABCD
C. ACBD
D. We cannot add elements before or after another element. We have to add them to the end of the linked list.
//line 9


Exit 7

Thông tin

Category
PRN292c
Thêm bởi
lanhoa86
Ngày thêm
Lượt xem
86
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN292c_-_FA_2023_-_1_1180.webp
File size
54.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom