Ans : If the file contains data in the form of digits, real numbers, characters and strings, thencharacter input/output functions are not enough as the values would be read in theform of characters. Also if we want to write data Read More …
Author: ignougroup
Ques : What is String Input/Output Functions
Ans : If we want to read a whole line in the file then each time we will need to call characterinput function, instead C provides some string input/output functions with the help ofwhich we can read/write a set of Read More …
Ques : Describe Character Input and output in Files
Ans : ANSI C provides a set of functions for reading and writing character by character or one byte at a time. These functions are defined in the standard library. They are listed and described below: • getc() • putc() Read More …
Ques : What is Input and Output using file pointers ?
Ans : After opening the file, the next thing needed is the way to read or write the file. There are several functions and macros defined in header file for reading and writing the file. These functions can be categorized Read More …
Ques : What is Graphics Objects ?
Ans : In Java all drawing takes place via a Graphics object. This is an instance of the classjava.awt.Graphics. Initially the Graphics object you use will be passed as an argument to an applet’spaint() method. The drawing can be done Read More …
Ques : What is Graphics Context and class ?
Ans : Graphics Context and Graphics Class • Enables drawing on screen• Graphics object manages graphics context• Controls how objects is drawn• Class Graphics is abstract• Cannot be instantiated• Contributes to Java’s portability• Class Component method paint takes Graphics object. Read More …
Ques : What is Java.net.ServerSocket ?
Ans : Constructors:public ServerSocket(int port): creates a server socket on a specified port with a queuelength of 50. A port number 0 creates a socket on any free port. public ServerSocket(int port, int QueLen): creates a server socket on a Read More …
Ques : What is Java.net.Socket ?
Ans : Constructorspublic Socket(InetAddress addr, int port): creates a stream socket and connects it tothe specified port number at the specified IP address public Socket (String host, int port): creates a stream socket and connects it to the specified port Read More …
Ques : What is Creating Distributed Applications Using RMI ?
Ans : The following are the basic steps be followed to develop a distributed applicationusing RMI: • Design and implement the components of your distributed application.• Compile sources and generate stubs.• Make classes network accessible.• Start the application.
Ques : What is Strlen Function
Ans : The strlen function returns the length of a string. It takes the string name as argument.The syntax is as follows: n = strlen (str); where str is name of the string and n is the length of the Read More …