POD-27-Sep-2016

Ankur Kulhari

Write a program to reverse characters of each word of a user provided sentence. Sentence can be of variable length and may contain any number of words. Ex: Hello, how are you? olleH, woh era ouy? Note: sentence breaking symbols, like: , . ? etc should remain at their original position. Hint: Break the problem into small tasks as: 1st …

POD-26-Sep-2016

Ankur Kulhari

Write a program to reverse a string word wise. Note: The string should be taken from user at run time. Characters within word are not to be reversed. If you are an exert, implement using dynamic memory allocation for string, otherwise use array and display the maximum character that user can enter. If user does not the criteria, display an …

POD-24-Sep-2016

Ankur Kulhari

Write a Program to divide two user entered complex numbers of the form: a+ib. (Where a,b can be any float values, including negative numbers).

Packages in Java

Raju Pal

In Java, packages are the collection of similar type of classes, interfaces, enumeration and annotation types. These are organized in a well defined manner for ease of use. Packages are similar to header files in C/C++. The main objectives of having a package type structure in Java are as follows: Code reuse Organize classes and interface and prevent from name …

POD-23-Sep-2016

Ankur Kulhari

Write a Program to multiply two user entered complex numbers of the form: a+ib, (Where a,b can be any float values, including negative numbers).

POD-22-Sep-2016

Ankur Kulhari

Write a Program to add two user entered complex numbers of the form: ax+iby, (Where a,b can be any float values, including negative numbers).

Operating Systems Interview Questions – Part IV

Ankur Kulhari

What is the purpose of an I/O status information? Ans:I/O status information provides info about which I/O devices are to be allocated for a particular process. It also shows which files are opened, and other I/O device state. What is multitasking? Ans:Multitasking is the process within an operating system that allows the user to run several applications at the same …

Operating Systems Interview Questions – Part III

Ankur Kulhari

How does swapping result in better memory management? Ans:During regular intervals that are set by the operating system, processes can be copied from main memory to a backing store, and then copied back later. Swapping allows more processes to be run that can fit into memory at one time. Give an example of a Process State. Ans:Process may be in …