SlideShare a Scribd company logo
Q.1: What are the namespaces required for socket programming?
A)System.net
B)System.net.sockets
C)System.sockets
D)Both A & B // correct
Q.2: TCP listener listens on
A)Specified IP Sddress
B)Specified Port
C)IP Address and Port
D)Both B & C // correct
Q.3: Which TCP listener method is used to listen incomming connection requests
A)Accept()
B)Start() // correct
C)AcceptTCPClient()
D)none
Q.4: Which property of TCP listener give the underline endpoint of current TCP
listener
A)EndPoint
B)Exclusive Address
C)Local EndPoint // correct
D)Server
Q.5: What AcceptSocket() method do?
A)listening for incomming connections
B)accept pending connection request as an asyncronous operation
C)determine if there are pending connection request
D)accept pending connection reuest // correct
Q.6: In socket programming data received and send only in?
A)Byte[] // correct
B)Char[]
C)int[]
D)none of above
Q.7: Which method is used to receive data from socket?
A)Get()
B)Receive() // correct
C)Accept()
D)none
Q.8: RemoteEndPiont property is must be called after
A)Pending()
B)Start()
C)Accept() // correct
D)Create()
Q.9: which method is used to send data from server to the client?
A)Post()
B)Send() // correct
C)Finalize()
D)none
Q.10: What is the type of RemoteEndPoint property?
A)RemotePoint
B)Remote
C)EndPoint // correct
D)none
Q.11: Which method is used to convert srting into IP Address?
A)Parse()
B)IPAddress.Convert()
C)IPAddress.Parse() // correct
D)IPAddress()
Q.12: What are the two arguments of TCP listener constructor , when we make its
object
A)IPAddress
B)PortNo
C)IPAddress & PortNo // correct
D)MAC Address
Q.13: Which method is used to close socket?
A)Decline()
B)Remove()
C)Stop()
D)Close() // correct
Q.14: What is the type of LocalEndPoint property?
A)EndPoint // correct
B)RemotePoint
C)Remote
D)none
Q.15: Which method is used to close the TCP listener?
A)Finalize()
B)Close()
C)Ecline()
D)Stop() // correct
Q.16: From which class TcpClient class is inherited?
A)TCP
B)IDisposible
C)SocketClass
D)none
Q.17: Which method is used to release the managed and unmanaged resources used
by the TCPCLient?
A)EndConnect()
B)Dispose() // Dispose
C)Remove()
D)Finalize()
Q.18: What is the use of Connect(IPAddress, Int32)?
A)Connect the client to Local TCP host
B)Connect the client to Remote TCP host // correct
C)Connect the client to Local TCP host as an asynchronous operation
D)Connect the client to Remote TCP host as an asynchronous operation
Q.19: Which method is used to dispose the TCPClient instance??
A)Dispose()
B)Stop()
C)Close() // correct
D)Remove()
Q.20: Waht is the return type of TcpClient.GetStream() method?
A)ByteStream
B)SocketStream
C)NetworkStream //Correct
D)FileStream

More Related Content

What's hot

Embedded system (Chapter )
Embedded system (Chapter )Embedded system (Chapter )
Embedded system (Chapter )
Ikhwan_Fakrudin
 
Micro controller(pratheesh)
Micro controller(pratheesh)Micro controller(pratheesh)
Micro controller(pratheesh)
Pratheesh Pala
 
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
IOSRJVSP
 
Programmable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayProgrammable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-array
Jher Carlson Atasan
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13
John Todora
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
dennis gookyi
 
Mouse gloves
Mouse glovesMouse gloves
Mouse gloves
Akhilnath Er
 
GCC, GNU compiler collection
GCC, GNU compiler collectionGCC, GNU compiler collection
GCC, GNU compiler collection
Alberto Bustamante Reyes
 
Crange: Clang based tool to index and cross-reference C/C++ source code
Crange: Clang based tool to index and cross-reference C/C++ source code Crange: Clang based tool to index and cross-reference C/C++ source code
Crange: Clang based tool to index and cross-reference C/C++ source code
Anurag Patel
 
Advanced c programming in Linux
Advanced c programming in Linux Advanced c programming in Linux
Advanced c programming in Linux
Mohammad Golyani
 
On tap ccent
On tap ccentOn tap ccent
On tap ccent
Tung Nguyen Duong
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
Syed Zaid Irshad
 
Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits
warda aziz
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
Mantra VLSI
 
Unit 2 module-2
Unit 2 module-2Unit 2 module-2
Unit 2 module-2
praveenabollyjoshi
 
17443 microprocessor
17443   microprocessor17443   microprocessor
17443 microprocessor
soni_nits
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Trivium Cipher Design
Trivium Cipher DesignTrivium Cipher Design
Trivium Cipher Design
Mohid Nabil
 
Claire protorpc
Claire protorpcClaire protorpc
Claire protorpc
Fan Robbin
 
Symbolic mathematics
Symbolic mathematicsSymbolic mathematics
Symbolic mathematics
FranklinChibuike1
 

What's hot (20)

Embedded system (Chapter )
Embedded system (Chapter )Embedded system (Chapter )
Embedded system (Chapter )
 
Micro controller(pratheesh)
Micro controller(pratheesh)Micro controller(pratheesh)
Micro controller(pratheesh)
 
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
Design and Synthesis of Multiplexer based Universal Shift Register using Reve...
 
Programmable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-arrayProgrammable array-logic-and-programmable-logic-array
Programmable array-logic-and-programmable-logic-array
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Mouse gloves
Mouse glovesMouse gloves
Mouse gloves
 
GCC, GNU compiler collection
GCC, GNU compiler collectionGCC, GNU compiler collection
GCC, GNU compiler collection
 
Crange: Clang based tool to index and cross-reference C/C++ source code
Crange: Clang based tool to index and cross-reference C/C++ source code Crange: Clang based tool to index and cross-reference C/C++ source code
Crange: Clang based tool to index and cross-reference C/C++ source code
 
Advanced c programming in Linux
Advanced c programming in Linux Advanced c programming in Linux
Advanced c programming in Linux
 
On tap ccent
On tap ccentOn tap ccent
On tap ccent
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits Programmable Logic Array(PLA), digital circuits
Programmable Logic Array(PLA), digital circuits
 
Verilog HDL
Verilog HDLVerilog HDL
Verilog HDL
 
Unit 2 module-2
Unit 2 module-2Unit 2 module-2
Unit 2 module-2
 
17443 microprocessor
17443   microprocessor17443   microprocessor
17443 microprocessor
 
Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)Welcome to International Journal of Engineering Research and Development (IJERD)
Welcome to International Journal of Engineering Research and Development (IJERD)
 
Trivium Cipher Design
Trivium Cipher DesignTrivium Cipher Design
Trivium Cipher Design
 
Claire protorpc
Claire protorpcClaire protorpc
Claire protorpc
 
Symbolic mathematics
Symbolic mathematicsSymbolic mathematics
Symbolic mathematics
 

Similar to Mc qs socket programming

Sockets
SocketsSockets
Sockets
Rizal Ari
 
400-101 Updated Question Answer
400-101 Updated Question Answer400-101 Updated Question Answer
400-101 Updated Question Answer
wrouthae
 
1- Which layer of the OSI model defines how to start- control- and end.pdf
1- Which layer of the OSI model defines how to start- control- and end.pdf1- Which layer of the OSI model defines how to start- control- and end.pdf
1- Which layer of the OSI model defines how to start- control- and end.pdf
StevenLCvWalkera
 
Networking
NetworkingNetworking
Networking
Becky Becky
 
Final exam review answer(networking)
Final exam review answer(networking)Final exam review answer(networking)
Final exam review answer(networking)
welcometofacebook
 
Computer Networking Multiple Choice Questions
Computer Networking Multiple Choice QuestionsComputer Networking Multiple Choice Questions
Computer Networking Multiple Choice Questions
Shusil Baral
 
MCQ_Computer_Networks this subject taken by kamesh sir.docx
MCQ_Computer_Networks this subject taken by kamesh sir.docxMCQ_Computer_Networks this subject taken by kamesh sir.docx
MCQ_Computer_Networks this subject taken by kamesh sir.docx
hariraaghav1909
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco router
Asif
 
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
Fiona Phillips
 
Elementary TCP Sockets
Elementary TCP SocketsElementary TCP Sockets
Elementary TCP Sockets
Saksham Khurana
 
Connecting Networks
Connecting NetworksConnecting Networks
Connecting Networks
imacomobio
 
Application Layer and Socket Programming
Application Layer and Socket ProgrammingApplication Layer and Socket Programming
Application Layer and Socket Programming
elliando dias
 
Network Sockets
Network SocketsNetwork Sockets
Network Sockets
Peter R. Egli
 
Sockets
Sockets Sockets
Sockets
babu4b4u
 
Ccn aquestions sep_2017
Ccn aquestions sep_2017Ccn aquestions sep_2017
Ccn aquestions sep_2017
Trang Nguyen
 
Socket System Calls
Socket System CallsSocket System Calls
Socket System Calls
Avinash Varma Kalidindi
 
TCP IP
TCP IPTCP IP
TCP IP
hivasu
 
More on Tcp/Ip
More on Tcp/IpMore on Tcp/Ip
More on Tcp/Ip
Rakhi Saxena
 
Unit 8 Java
Unit 8 JavaUnit 8 Java
Unit 8 Java
arnold 7490
 
Ccn aquestions jul_7_2015
Ccn aquestions jul_7_2015Ccn aquestions jul_7_2015
Ccn aquestions jul_7_2015
Carlos Humberto Rivera Mera
 

Similar to Mc qs socket programming (20)

Sockets
SocketsSockets
Sockets
 
400-101 Updated Question Answer
400-101 Updated Question Answer400-101 Updated Question Answer
400-101 Updated Question Answer
 
1- Which layer of the OSI model defines how to start- control- and end.pdf
1- Which layer of the OSI model defines how to start- control- and end.pdf1- Which layer of the OSI model defines how to start- control- and end.pdf
1- Which layer of the OSI model defines how to start- control- and end.pdf
 
Networking
NetworkingNetworking
Networking
 
Final exam review answer(networking)
Final exam review answer(networking)Final exam review answer(networking)
Final exam review answer(networking)
 
Computer Networking Multiple Choice Questions
Computer Networking Multiple Choice QuestionsComputer Networking Multiple Choice Questions
Computer Networking Multiple Choice Questions
 
MCQ_Computer_Networks this subject taken by kamesh sir.docx
MCQ_Computer_Networks this subject taken by kamesh sir.docxMCQ_Computer_Networks this subject taken by kamesh sir.docx
MCQ_Computer_Networks this subject taken by kamesh sir.docx
 
08 module interconnecting cisco router
08 module interconnecting cisco router08 module interconnecting cisco router
08 module interconnecting cisco router
 
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
00-105 Interconnecting Cisco Networking Devices Part 1 (ICND1.pdf
 
Elementary TCP Sockets
Elementary TCP SocketsElementary TCP Sockets
Elementary TCP Sockets
 
Connecting Networks
Connecting NetworksConnecting Networks
Connecting Networks
 
Application Layer and Socket Programming
Application Layer and Socket ProgrammingApplication Layer and Socket Programming
Application Layer and Socket Programming
 
Network Sockets
Network SocketsNetwork Sockets
Network Sockets
 
Sockets
Sockets Sockets
Sockets
 
Ccn aquestions sep_2017
Ccn aquestions sep_2017Ccn aquestions sep_2017
Ccn aquestions sep_2017
 
Socket System Calls
Socket System CallsSocket System Calls
Socket System Calls
 
TCP IP
TCP IPTCP IP
TCP IP
 
More on Tcp/Ip
More on Tcp/IpMore on Tcp/Ip
More on Tcp/Ip
 
Unit 8 Java
Unit 8 JavaUnit 8 Java
Unit 8 Java
 
Ccn aquestions jul_7_2015
Ccn aquestions jul_7_2015Ccn aquestions jul_7_2015
Ccn aquestions jul_7_2015
 

Recently uploaded

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
ScyllaDB
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Precisely
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
saastr
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 

Recently uploaded (20)

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyFreshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-Efficiency
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their MainframeDigital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
Digital Banking in the Cloud: How Citizens Bank Unlocked Their Mainframe
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
9 CEO's who hit $100m ARR Share Their Top Growth Tactics Nathan Latka, Founde...
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 

Mc qs socket programming

  • 1. Q.1: What are the namespaces required for socket programming? A)System.net B)System.net.sockets C)System.sockets D)Both A & B // correct Q.2: TCP listener listens on A)Specified IP Sddress B)Specified Port C)IP Address and Port D)Both B & C // correct Q.3: Which TCP listener method is used to listen incomming connection requests A)Accept() B)Start() // correct C)AcceptTCPClient() D)none Q.4: Which property of TCP listener give the underline endpoint of current TCP listener A)EndPoint B)Exclusive Address C)Local EndPoint // correct D)Server Q.5: What AcceptSocket() method do? A)listening for incomming connections B)accept pending connection request as an asyncronous operation C)determine if there are pending connection request D)accept pending connection reuest // correct Q.6: In socket programming data received and send only in? A)Byte[] // correct B)Char[] C)int[] D)none of above Q.7: Which method is used to receive data from socket? A)Get() B)Receive() // correct C)Accept() D)none Q.8: RemoteEndPiont property is must be called after A)Pending() B)Start() C)Accept() // correct D)Create()
  • 2. Q.9: which method is used to send data from server to the client? A)Post() B)Send() // correct C)Finalize() D)none Q.10: What is the type of RemoteEndPoint property? A)RemotePoint B)Remote C)EndPoint // correct D)none Q.11: Which method is used to convert srting into IP Address? A)Parse() B)IPAddress.Convert() C)IPAddress.Parse() // correct D)IPAddress() Q.12: What are the two arguments of TCP listener constructor , when we make its object A)IPAddress B)PortNo C)IPAddress & PortNo // correct D)MAC Address Q.13: Which method is used to close socket? A)Decline() B)Remove() C)Stop() D)Close() // correct Q.14: What is the type of LocalEndPoint property? A)EndPoint // correct B)RemotePoint C)Remote D)none Q.15: Which method is used to close the TCP listener? A)Finalize() B)Close() C)Ecline() D)Stop() // correct Q.16: From which class TcpClient class is inherited? A)TCP B)IDisposible C)SocketClass D)none
  • 3. Q.17: Which method is used to release the managed and unmanaged resources used by the TCPCLient? A)EndConnect() B)Dispose() // Dispose C)Remove() D)Finalize() Q.18: What is the use of Connect(IPAddress, Int32)? A)Connect the client to Local TCP host B)Connect the client to Remote TCP host // correct C)Connect the client to Local TCP host as an asynchronous operation D)Connect the client to Remote TCP host as an asynchronous operation Q.19: Which method is used to dispose the TCPClient instance?? A)Dispose() B)Stop() C)Close() // correct D)Remove() Q.20: Waht is the return type of TcpClient.GetStream() method? A)ByteStream B)SocketStream C)NetworkStream //Correct D)FileStream