Automatically extracted historical question data. Academic accuracy and examination rules require verification.
Part B — 11
i) What are the different types of computers ? How are they
classified? Explaih. (8)
COMMON TO ALL BRANCHES
First Semester
ii) Draw a flow chart to find the greatest of 3 numbers (8)
GE8161 - COMPUTING TECHNIQUES 12. a) List all the unary and biriary operators in C and explain each with
(Regulations 2012) example.
Time: 3 Hours Answer ALL Questions Max. Marks 100 (OR)
b) i) Explain the "if condition statement with an example. Describe
Other Or UnclassifiedSource quality review required
Part A — 1
Convert a decimal -27(minus twenty seven) into binary number, Write a loop statement for the following : (4+4 = 8)
using 2's complement. ii) to display the factors of a given integer.
Other Or UnclassifiedSource quality review required
Part A — 2
What is stored program concept ? E.g, factors of 24 are, 2, 3, 4, 6, 8, 12
DefinitionSource quality review required
Part A — 3
Write the output of the following C program :
main () iii) to display the multiplication table for a given number n upto 12.
{
int x; 13. a) i) Write a C program to check whether a given word is palindrome or
float y; not. (8)
x = 17+23 % 7 / 6 ;
y = ( 3 * x ) / ( 1 2 % 8 ) ; ii) Write the syfitax of "switch-case" statement. Describe its
printf ("%d %f, x, y); multiconditional checking and limitations with example. (8)
}
Other Or UnclassifiedSource quality review required
Part A — 4
Write ah "if statement to check whether an integer variable ffi is in (OR)
the range of 80 to 90,
Other Or UnclassifiedSource quality review required
Part A — 5
Consider the declaration, int a[] = { 5 , 7, 4, 8, 10, 3, 9 }. b) Write a C. program to compute the
What is the size of array a and what is the value referred by a[4] ? i) addition of two two-dimensional matrices (6)
Other Or UnclassifiedSource quality review required
Part A — 6
Write the situations, when single quote(') and double quotes("") are
ii) multiplication of two two-dimensional matrices (10)
used in a C program ?
Other Or UnclassifiedSource quality review required
Part A — 7
Give an example for strcat() function.
Other Or UnclassifiedPart A — 8
What is the purpose of a structure variable ?
14. a) i) Describe, how to declare, define and calling a function. Illustrate
DefinitionSource quality review required
Part A — 9
How "#define" is used in a C program ?
by writing a function to find the factorial of an integer value. (10)
Other Or UnclassifiedSource quality review required
Part A — 10
What is the importance of storage class ?
ii) What is a pointer variable ? Describe its usage with example. (6)
DefinitionSource quality review required
Part A — 10b
b) i) Explain pass by value and pass by reference in functions with
exarfiple. (8)
ii) Write a C program to count number of vowels, words and special
characters ($, @, #), separately from a given sentence. (8)
15. a) Define a structure stud with rollno, name and percentage of mark.
Declare the necessary structure variable and show its usage with an
example to store a student's information. (16)
Other Or UnclassifiedSource quality review required
Part A — 10b
b) i) What is a macro ? Compare macro and function with illustration.
(8)
ii) List the pre-processor directives. Explain any two with example.
(8)
*******
Other Or UnclassifiedSource quality review required