Q21. What are different type of protocols present?
Q22. What is named piped protocols in WCF?
Q23. When to use margin and when to use padding?
Q24. How to make a box round in css?
=======================================================================
Q21. What are different type of protocols present?
Answer:
- HTTP (80)
- HTTPS(443)
- FTP(20/21)
- Email protocols (POP3, IMAP, SMTP)
- TCP/IP
=======================================================================
Q22. What is named piped protocols in WCF?
Answer:
A named pipe is a named, one-way or duplex pipe for communication between the pipe server and one or more pipe clients. All instances of a named pipe share the same pipe name, but each instance has its own buffers and handles, and provides a separate conduit for client/server communication. The use of instances enables multiple pipe clients to use the same named pipe simultaneously.
=======================================================================
Q23. When to use margin and when to use padding?
Answer:
Use padding when:
- You don’t want your content to touch the edges of the container. Example: you have a bunch of <p> elements inside a div and you don’t want the text inside <p> elements to touch the div’s border:
- You want to increase the size of the element. Example: if you want to increase the size of a button:
Use margin when:
- You want to have some space around an element, or you don’t want the element to touch other elements around it:
- You want to center an element. If you give “margin: auto” to an element with fixed width, it will center that element horizontally (and vertically too if using flexbox
Check examples with images below:
=======================================================================
Q24. How to make a box round in css?
Answer:
border-radius:25px;
=======================================================================
No comments:
Post a Comment