Syed Ammal Engineering College: Department of Computer Science and Engineering
Syed Ammal Engineering College: Department of Computer Science and Engineering
UNIT – I
1. Define computers?
A computer is a programmable machine or device that performs pre-defined or programmed
computations or controls operations that are expressible in numerical or logical terms at high
speed and with great accuracy.
(Or)
Computer is a fast operating electronic device, which automatically accepts and store input data,
processes them and produces results under the direction of step by step program.
35. What is an IC? How does it help in re ducing the size of Computers?
IC is an Integrated Circuit; it integrates large number of circuit elements into very small
surface (less than 5mm square) of silicon known as Chip‘s.
39. What are the positional number systems and what is their base?
Number System Base
Decimal Number System 10
Binary Number System 2
Octal Number System 8
Hexa Decimal Number System 16
51. List out the types of computers based on size, memory capacity.
1. Micro computers
2. Mini computers
3. Mainframe computers
4. Super computers
55. Write the binary and octal equivalent of hexadecimal number 7BD? (APR2009)
Binary Equivalent of 7BD = (0111 1011 1101)2
Octal Equivalent of 7BD = (011 110 111 101) = (3675)8
SYED AMMAL ENGINEERING COLLEGE
(An ISO 9001: 2008 certified Institution)
Dr. E.M.AbdullahCampus,Ramanathapuram – 623 502.
Department of Computer Science and Engineering
56. Give any tw o tasks, which humans perform better than computers? (JAN2009)
• Humans can communicate better than computers.
• Humans are much reliable than computers.
58. Convert binary number 100110 into its octal equivalent? (JAN2009)
Octal equivalent of 100110 = (100 110) = (46)8
UNIT II
3. Define Hardware.
Hardware is the physical components of the computer.
5. Define OS.
An operating system is a set of programs, which are used to control and co-ordinate the computer
system.
8. Define Multiprocessing?
Multiprocessing is the process of executing a single job by using multiple CPU‟s.
20. Specify the personnel’s, w ho are responsible for system design and implementation.
• System Personnel.
• System Analyst.
• System Designer.
• Programmers.
• Users.
45. Difference between web page and website. (JAN 2009/JAN 2010)
46. Differentiate machine language and high level language. (JAN 2010)
52. What is the difference between text and graphical browsers? (JAN2010)
S No Text browser Graphical browser
1 No GUI. Based on GUI.
2 Links are based on text entry. Links are present as icons or images.
3 Allow users to display and interact Allow users to display and interact with
only with text on the web pages. various images, present on the web pages.
4 Example: Lynx web browser Example: Internet Explorer, Netscape
Navigator.
SYED AMMAL ENGINEERING COLLEGE
(An ISO 9001: 2008 certified Institution)
Dr. E.M.AbdullahCampus,Ramanathapuram – 623 502.
Department of Computer Science and Engineering
UNIT III
PROBLEM SOLVING AND OFFICE AUTOMATION
1. What is a program?
A program is a set instruction written to carryout a particular task, so that computer can
perform some specified task.
8. What is Flowchart?
A Flowchart is a pictorial representation of an algorithm. It is often used by programmer as a
program planning tool for organizing a sequence of step necessary to solve a problem by a
computer.
SYED AMMAL ENGINEERING COLLEGE
(An ISO 9001: 2008 certified Institution)
Dr. E.M.AbdullahCampus,Ramanathapuram – 623 502.
Department of Computer Science and Engineering
9. What is the need of Flowchart symbols?
Each symbol of different shapes denotes different shapes denote different types of
instructions. The program logic through flowcharts is made easier through the use of
12.Draw the flowchart to find the maximum among three numbers (JAN2009)
13. What are the rules for draw ing a flow chart?
The standard symbols should only be used.
The arrowheads in the flowchart represent the direction of flow of control in the problem.
The usual direction of the flow of procedure is from top to bottom or left to right.
The flow lines should not cross each other.
Be consistent in using names and variables in the flowchart.
Keep the flowchart as simple as possible.
Words in the flowchart symbols should be common statements and easy to understand.
Chart main line of logic, and then incorporate all the details of logic.
If a new page is needed for flowcharting, then use connectors for better representation.
Don’t chart every details or the flowchart will only be graphical represented.
17. What are the rules for writing pseudo code? (MAY2010)
Write on statement per line.
Capitalize initial keywords.
Indent to show hierarchy.
End multi line structure.
Keep statements language independent.
26. What is Tab and what are the Tab settings available in word?
Tab is used to control the alignment of text with in the document. Word provides seven types of
tabs.
1. Standard (left) tab
2. Center tab
3. Right tab
4. Decimal tab
5. Bar tab
6. First line Indent tab
7. Hanging Indent tab
UNIT IV
INTRODUCTION TO C
13. What is the difference between while loop and do…while loop?
In the while loop the condition is first executed. If the condition is true then it executes the body
of the loop. When the condition is false it comes of the loop. In the do…while loop first the
statement is executed and then the condition is checked. The do…while loop will execute at least
one time even though the condition is false at the very first time.
14. What is a Modulo Operator?
„%‟ is modulo operator. It gives the remainder of an integer division
Example:
SYED AMMAL ENGINEERING COLLEGE
(An ISO 9001: 2008 certified Institution)
Dr. E.M.AbdullahCampus,Ramanathapuram – 623 502.
Department of Computer Science and Engineering
a=17, b=6. Then c=%b gives 5.
15. How many bytes are occupied by the int, char, float, long int and double?
int - 2 Bytes char - 1 Byte float - 4 Bytes long int - 4 Bytes double - 8 Bytes
22. What will happen when you access the array more than its dimension?
When you access the array more than its dimensions some garbage value is stored in the array.
23. Write the limitations of getchar( ) and sacnf( ) functions for reading strings (JAN 2009)
getchar( )
To read a single character from stdin, then getchar() is the appropriate.
scanf( )
scanf( ) allows to read more than just a single character at a time.
31. What is the output of the following program when, the name given with spaces?
main()
{
char name[50];
printf(“\n name\n”); scanf(“%s, name); printf(“%s”,name);
}
Output:
Lachi (It only accepts the data upto the spaces)
33. Why we don‟t use the symbol „&‟ symbol, while reading a String through scanf()?
The „&‟ is not used in scanf() while reading string, because the character variable itself specifies
as a base address.
Example: name, &name[0] both the declarations are same.
34. What is the difference between static and auto storage classes?
Static Auto
Storage Memory Memory
Initial value Zero Garbage value
Scope Local to the block in which Local to the block in
the variables is defined which the variable is
Value of the variable defined.
Life persists between different The block in which the
function calls. variable is defined.
37. List out some of the rules used for „C‟ programming.
· All statements should be written in lower case letters. Upper case letters are only for symbolic constants.
· Blank spaces may be inserted between the words. This improves the readability of statements.
· It is a free-form language; we can write statements anywhere between „{„ and „}‟. a = b + c;
d = b*c;
(or)
a = b+c; d = b*c;
· Opening and closing braces should be balanced.
38. Define delimiters in „C‟.
Delimiters Use
50. Write short notes about main ( ) function in ‟C‟ program. (MAY 2009)
o Every C program must have main ( ) function.
o All functions in C, has to end with „( )‟ parenthesis.
o It is a starting point of all „C‟ programs.
o The program execution starts from the opening brace „{„ and ends with closing
brace „}‟, within which executable part of the program exists.
UNIT V
FUNCTIONS AND POINTERS
2. What is an array?
An array is a group of similar data types stored under a common name.
int a[10];
Here a[10] is an array with 10 values.
8. How can you return more than one value from a function?
A Function returns only one value. By using pointer we can return more than one value.
12. What are the steps involved in program development life cycle?
1. Program Design
2. Program Coding
3. Program Testing & Debugging
22. What is the deference between declaring a variable and defining a variable?
· Declaring a variable means describing its type to the compiler but not allocating any space for
it.
· Defining a variable means declaring it and also allocating space to hold the variable. A variable
Arrays Structures
An array is a collection of data items of same A structure is a collection of data items of
data type. different data types.
Arrays can only be declared. Structures can be declared and defined.
There is no keyword for arrays. The deyword for structures is struct.
An array name represents the address of the A structrure name is known as tag. It is a
starting element. shorthand notation of the declaration.
An array cannot have bit fields. A structure may contain bit fields.