Languages [3i Infotech Placement]: Sample Questions 388 - 390 of 546

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 388

Languages
Edit

Describe in Detail

Essay▾

What is the protocol used by server and client?

Explanation

Java provides support for the two common network protocols:

  • TCP:
    • Transmission control protocol.
    • Allows for reliable communication between two applications.
    • TCP is typically used over the internet protocol, which is referred to as TCP/IP.
  • UDP:
    • It is user datagram protocol.
    • A connection-less protocol that allows for packets of data transmitted between applications.

Question 389

Edit

Write in Short

Short Answer▾

What are the files which are automatically opened when a C file is executed? Answer: stdin (standard input) , stdout (standard output) , stderr (standard error)

Explanation

  • In a computer programming, standard streams are pre connected input and output communication channels between a computer program and its environment when it begins execution
  • The three I/O connections are called standard input (stdin) , standard output (stdout) , and standard error (stderr) .
Define the Standard Stream is Connected Input and Output Communication Channels

Question 390

Edit

Describe in Detail

Essay▾

Differentiate persistent & non-persistent objects?

Explanation

  • Persistent Objects:-
    • Persistent refers to an object՚s ability to transcend time or space.
    • Stores/saves its state in a permanent storage system without losing the information represented by the object.
    • Can exist for the duration of the application in a persistent store such as a database.
  • Non-persistent objects:-
    • A non-persistent object is said to be transient or ephemeral.
    • By default objects are considered as non-persistent.
    • A non-persistent object is created dynamically and discarded when obsolete.

Developed by: