Wednesday 27 February 2013

Discuss the three methods available to open a new blank document in MS-Word.

There are three methods available to open a new blank document in MS-Word.
All the three methods are easy to open a blank document but the third one is more easy.
These three methods are as follow:

1.            Use of New Blank Document button on standard tool bar:
Click the New button that is there on the Standard Tool Bar and we will get the new blank document. 
 

Explain Single User, Multi User and Batch Processing System.

Operating System is system software. This is software acts as an interface between the user and the computer. It also controls and coordinates different operations of computer. These operating systems are categorized of basis of users and their tasks.

Single user:

a) Single user, Single Task: As the name implies, this operating system is designed to manage the computer so that one user can effectively do one thing at a time. The Palm OS for Palm handheld computers is a good example of a modern single-user, single-task operating system. When you are using MS-DOS it is a single user single task operating system.

Multiply the following binary numbers A) 1001 * 1010 B) 1.01 * 10.1


A)        1001*1010 = 1011010
                        Multiplication            1001
                                                      X   1010
                                                           
                                                            0000
                                                           1001   
                                                        0000                  
                                                      1001      
                                                      1011010

            B)        1.01*10.1=11.001
Multiplication                                    1.01
                                                      X   10.1
                                                                                   
                                                            101
                                                       100
                                                        101
                                                        11.001   

Binary to Decimal (i) 1001(2) (ii) 1100.01(2)


i) 1001 =  9
            Conversion from Binary to Decimal:
            1 x 23+0 x 22+0 x 21+1 x 20
            1 x 2 x 2 x 2+0 x 2 x 2 + 0 x 2 + 1x 1
            8+0+0+1=9               
           
ii) 1100.01 = 12.25
Conversion from Binary to Decimal of 1100
            1 x 23+1 x 22 + 0 x 21 + 0 x 20
            1 x 2 x 2 x 2+ 1 x 2 x 2 + 0 x 2 + 0 x 1
            8+4+0=12
Conversion from Binary to Decimal of .01
            0 x 2-1 + 1 x 2-2         
            0 x 0 + 1 x 0.25
            0 + 0.25=0.25           

Convert A) Decimal to Binary (i) 5¾ (ii) 20


(i) 5¾ =101.11
                        5 / 2 = 2 + remainder of 1
                        2 / 2 = 1 + remainder of 0
                        1 / 2 = 0 + remainder of 1
            Binary presentation of 5 (read from down to up) = 101
                        ¾ = 0.75 (Decimal representation)
                        0.75 -1 x 2-1 = 0.75 – 0.5=0.25
                        0.25 – 1x 2-2 = 0.25 – 0.25 = 0
            Binary presentation of ¾  = 0.11
            Binary presentation of 5¾  (or 5.75)=101.11

Write your own function in C to implement string length and string concatenation without using built in functions.

Function in C to implement string length:

/*function to find the string length*/         
int mystrlen(char str[]) /* int type function, it will accept an array of characters and return total number of characters */
{
            int i;
            for(i=0; str[i] !=’\0’; i++)
            {
             }
return i;
}/*function ends here*/

Distinguish between arrays and pointers with suitable examples.

An array is a single, preallocated chunk of contiguous elements (all of the same type), fixed in size and location. A pointer is a reference to any data element (of a particular type) anywhere. A pointer must be assigned to point to space allocated elsewhere, but it can be reassigned (and the space, if derived from malloc, can be resized) at any time. A pointer can point to an array, and can simulate (along with malloc) a dynamically allocated array, but a pointer is a much more general data structure

Write a note on storage classes with examples.

The “storage class” of a variable determines whether the item has a “global” or “local” lifetime. C calls these two lifetimes “static” and “automatic.” An item with a global lifetime exists and has a value throughout the execution of the program. All functions have global lifetimes.
Automatic variables, or variables with local lifetimes, are allocated new storage each time execution control passes to the block in which they are defined. When execution returns, the variables no longer have meaningful values.
C provides the following storage-class specifiers:

Define functions. Write the advantages and disadvantages of functions.

Definition of Function:

A function is a routine or a set of instruction or code that performs a specific task and can be processed independently.
When the program passes control to a function the function perform that task and returns control to the instruction following the calling instruction. The most important reason to use the function is make program handling easier  as only a small part of the program is dealt with at a time.
A function is a “black box” that we’ve locked part of our program into. The idea behind a function is that it compartmentalizes part of the program, and in particular, that the code within the function has some useful properties.

Define looping. Discuss the types of looping structures used in C with examples.

Looping:

 The loop or iteration construct, directs a program perform a set of operation again and again until a specified condition is achieved.
This condition causes the termination of the loop.
C contains three statements for looping:

Ø    While Loop:  While loop construct contains the condition first. If the condition is satisfied the control executes the statement following the while loop exile, it ignores these statements.

Explain the different types of input and output statements used in C.

C support many input and output statements. It also supports formatted input and output.
Basic Character Input & Output:

getchar() function: It reads one character from the standard input. If there is no more characters available, the special value EOF will be return.
Example:       char c;
                        ….      
                        c=getchar();
putchar() function: It writes one character to the standard output (Monitor).
Example:       char c;
                        c=”A”;
                        putchar(c);

Discuss the different types of operators used in C with an example for each

C supports a rich set of operators. They are classified into following categories:
1.            Arithmetic operators
2.            Relational operators
3.            Logical operators
4.            Assignment operators
5.            Increment and decrement operators
6.            Conditional operators
7.            Bitwise operators
8.            Special operators(Comma ‘,’ and sizeof() operator)

Explain the various data types used in C with suitable examples.

C language has a rich set of data types. Storage representations and machine instruction to handle constants differ from machine to machine. The variety of data types available allow the programmer to select the type appropriate to the needs of the application as well as the machine.
C supports three classes of data types:
1.  Primary or Fundamental data types: This includes char, int, float, and void data types.
2.  Derived data types: This includes pointer and array.
3.  User-defined data types: This includes structure and unions.

Tuesday 26 February 2013

How many 3 digit numbers can be formed by using the digits 2, 3, 5, 6, 7, 9 repetitions not being allowed i) How many of these are less than 400 ? ii) How many of these are even ? iii) How many of these are multiples of 5 ?



There are 6 digit and we require 3 digit number.
This means we have to fill up 3 places ( units, tenths, and hundredths ) by using  6 digits. Units place can be filled up in 6 ways as we can put any one of the six digit. After this 5 digits are left behind and 10th place can be filled up in 5 ways and similarly 100th place can be filled up in 4 ways.
                                                              100          10               1         

            
                                                                4            5               6         
Therefore the number of ways of filling up the 3 places = 6 x 5 x 4 = 120

We can just write that no. of ways of filling up 3 places using 6 digits is


Write a memo to the department of Information Technology, Sikkim Manipal University in a prescribed format. Subject: A proposed to conduct a seminar on ‘Information technology in MGM College, Udupi.

Sikkim Manipal University

Memorandum

To:            XYZ, Department of Information Technology
From:        Suresh Kumar Suthar

Date:         15th December 2013

Subject:     A proposal to conduct a seminar on ‘Information Technology’ in HRD College, Bholapur.

This is to inform you that many of the students are requesting for a seminar on information technology.

Write a letter to the Program coordinator, Information technology, to inform that the submission of your assignments has been delayed due to a valid reason. Your letter should contain - reason for the late submission - apology for late submission - tentative date on or before which you submit the assignments


A/534, Geeta Bldg,
Sagarpur,
New Delhi 110012

17th December 2013

Program Coordinator
Information Technology,
Sikkim Manipal University
Sikkim

Respected Sir/Madam,

What is the purpose of paraphrasing and what are its techniques?

Paraphrasing is a technique that involves changing a text matter, so that it is quite dissimilar to the main source. But we should be careful to retain all the meaning of the passage. This skill is useful white expanding the taken notes or vice versa. Effective paraphrasing avoids the risk of plagiarism. You should remember some important points in the process of paraphrasing. They are —
‘1. Although paraphrasing techniques are used in summary writing, it does
not aim to shorten the length of a text, merely to restate the text.
E.g.: Evidence of a lost civilization has been found off the coast of China.
This could be paraphrased as —
Remains of an ancient society have been discovered in the sea near China.
2. A good paraphrase is significantly different from the wording of the original, without altering the meaning at all, Read the text below and then decide which is the best paraphrase.

Give examples for the various types of reading (2 each)

                We read in different ways depending on the purpose for which we are reading a text. Following are the example of some of the different types of reading.
                1. Skimming:
                 
i)          Suppose we want to buy a book on Communication Skills, we go to a book store and see a rack full of books, with the same title but different authors. We don’t have time to read the pages before deciding on buying the book. Hence, we quickly go through the contents, title page and the blurb. By now we have decided to buy one book. This is skimming reading. Thus, skimming means “looking quickly over a text/book to get a general superficial idea of the content.”
                         
ii)         At bus stop or at a news paper stall we often read headlines of the news in many papers without reading whole article is another example.

How should we handle the customer’s complaints?

                A career in any industry, be it at the front office, managing the other staff of dealing with customers, can be managed smoothly if we develop our listening skills, especially when facing customer complaints. Listening skills have to be mastered because the customers you face are not the same always. We may come across a customer, who is drunk, may get belligerent or even violent if offended. Listening and being sympathetic are your best first lines of defense. You may sometimes come across another category of customers who are not satisfied with the treatment that they have received. These also should be attended with patient hearing.

Explain the various strategies for effective listening [Preferably with examples suitable to various context.


                There are many way to improve listening skills.  Following are some of the strategies for improve listening skills.

1. Maintain eye contact with the speaker:

Eye contact keeps us focused on the job at hand and keeps you involved in the lecture/speech. It is important to position our self in such a way that helps us to maintain eye contact while allowing us to watch for body language and other non-verbal forms of communication.

Explain the various types of listening about 200 words.

                Listening is a highly complex, interactive process “by which spoken language is converted to meaning in the mind”.
                There are many types of listening which are explained below:
                 
                1. Discriminative Listening:

                              As the name itself suggests, Discriminative listening is the most basic type of listening, whereby the difference between the sound is identified. If you cannot hear differences, then you cannot grasp the meaning that is expressed by such differences.
                           We learn to find the difference sound within our own language early, and later are unable to discriminate between the phonemes of other languages. This is one reason why people belonging to one country find it difficult to speak the language of another nation, as they find the sounds similar, but cannot distinguish the subtle sounds that are required in that language.