first/second semester b.e.degree examination, … · choose the correct answers for the...
TRANSCRIPT
First/Second Semester B.E. Degree Examination, Dec.14/Jan.2015Computer Concepts and C Programming
'Note: 1. Answer any FIVE full questions, choosing at least two from each part. .<'f..,.<"'b2. Answer all objective type questions only on OMR sheet page 5 of the answer booklet .o...O:J3. Answer to objective type questions on sheets other than OMR will not be valued.- :.J~.(j
~t>. (04 Marks)
:6J D) 32
'1/
PART-Atho §e.the correct answers for the following:i) -Ii: word contains number of bits.
~ 8 B) 16ii) Which (lfthe following is a input device?
A) Printoc B) CRT screen C) Plotteriii) The term do s per inch refers to a printer ~
A) Speed 0 B) Output C) Co OJ;iv) Which is the matID;partof computer? ~)
A) Input B) Output C) UWhat types of computers are ed by the orga . at"ons? Explain.Explain the functional organizaf)n of a digit l"-Computer.
D) Memory(08 Marks)(08 Marks)
•Choose the correct answers for the folIo'" ing:i) Which of these is not a netw tOp010gy?
A) BUS B) RINGii) Which of these is not ate of translator. •
A) Assembler B.} Interpreteriii) Which is a secondar memory device? v
A) CPU ,~" B) ALU C) RO'RPY disk D) Mouseiv) A translator w.~cli reads a line and converts it into~ 'ac~ine language code is
.A) Asseml31er B) Interpreter C) System s ware D) CompilerExplain the (); ponents of a computer network. , ~ (04 Marks)
c. Mention txpes of storage devices. Explain in brief /'~ (G6 Marks)d. What is tb'e need for networking? ' ~"") (06 Marks)o '--0
Qhoo e the correct answers for the following: )"~ (04 Marks)i) Which of the following is an input function? ~ /)
A) getc( ) B) puts( ) C) printf( ) D) puw'ii) The size of character data type is : ~
A) 1 byte B) 2 bytes C) 3 bytes D) 4 byte; U-a..iii) Which of these is a keyword? "..e
A) PI B) add C) Sum D) while 0>iv) Which of these is a valid identifier?
A) int B) $roll nob. Explain the parts of a C program.c. Explain the secondary data types in detail.d. Explain any two "C" tokens.
D) I class(06 Marks)(06 Marks)(04 Marks)
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP
Evaluate the expression a + 2 > b &&!c : : a! = d && a - 2 < = e whec =0, d = 7, e = 5. txExpiaiillogical operators with syntax and example. ~ .Explai~t. ecial operators with an example. ~
1$" PART-B ~C1)Choose the COM tt answers for the following: 0"i) The getch( ) i efmed in __ library V
A) stdio.h B) math.h C nio.hii) Parameters used m function call are called 'J
A) Formal parameter,s I ...,;)Actual parametersC) No parameter ~) > ••• «}) None of these
iii) The function which is callea y. itself is )A) Built in function B) User-defmed functionB) Recursive function D) Conditional function
iv) The function which is writ e iQ. the ompilerA) Recursive function B) User-defmed functionC) Built-in function P) Backward function
Mention types of functions. ltxplain anyone type With syntax and example.Write a program to fin, e OCD of two numbers ~in nction.Explain types of fu e l€Ynsdepending on parameter.C )'Choose the corn~et answers for the following : ~i) Whic ,a£'the following is a jump statement? 'oj'
A fOE B) goto C) while ~ D) do-whileRich of the following executes atleast once? ~~ 'f) while B) do-while C) for ~£j.
Find out how many times the following loop is executed? )l'Qi= 10;j = 100;while (i < ~ j) ~OJ{ prinlf("%d", i); ~ -2:"l
i=i+10; fJ}
A)9 B)8iv) Break statement is used in the following:
A) while B) forb. Differentiate between while and do while.c. Compare if statement and switch statement.d. Write a program in 'c' to print multiplication table upto 20.
Choose the correct answers for the following :i) Which of the following is an equal operator:
A) > = B) = C) = =ii) Which of the following is a ternary operator in C?
A) + + B) + C) ? :iii) x = 5 > 3 && 5> 2. What is the value of x?
A) 3 B) 1iv) Which is not a bitwise operator?
A) & B) :
~
cj'Y.~-·11, b = 6,
(06 Marks)(06 Marks)(04 Marks)
(06 Marks)(04 Marks)(06 Marks)
D) all the above(04 Marks)(06 Marks)(06 Marks)
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP
7 a. Choose correct answers for the following :i) In a string name [5] = {'A', 'm', 'a', 'r'}; the character 'a' is designated as
A) name [0] B) name [2] C) name [3] D) name [4]ii) In an array int a [2] [2] = {10, 30, 50, 70}; the a[l][l] element is
A) 70 B)50 C)30 D)IOiii) Which of the following string handling function is used to combine two strings?
A) strcat( ) B) strcmp( ) C) strlen( ) D) strcpy() Or:>iv) String is ended with ." V
A) 0 B) '\0' C) NULL D);~·b. Mention the types of array. Explain any two with syntax and example. • ~O Marks)
c. •W ite a program to multiple two arrays of given order a[m x n] and b[p x q]o\:)'b (09 Marks)
8 a. ChQ0.•s~""thecorrect answers for the following : ,~ (04 Marks)i) Wlii~h of these OpenMP directives doesn't help in synchroni of tasks?
A)(BaW"er directive B) for directi . ,C) or~efe directive D) flush directiY'e___ enpITonment variable specifies the number o£threaas in parallel region.A) OMP _D MIC B) OM. ESTEDC) OMP _SCH ULE D ;~MP _NUM _THREADS
iii) OpenMP stands fo "JA) Open multi-paralle'lism r ~ Organized multi-programming
r -C) Open multi-processrn . ) Organized multi-programmingiv) The part of the program were t e sha~ memory is accessed is called
A) Executable section B) Critical sectionC) Run-time section D) Memory section
b. How synchronization is achieved be~ween""various tasks in OpenMP? (10 Marks)c. What are the functions that ar~ supported by Op nMP to control the number of threads and
processors? 6~ (06 Marks)
0v~0 *<*** ~ @0° )'
~ ~)"~ f(:f ~ "--')
0~ ~~C} 07
0'" )7Q~G ~j
~'-.., v~~.U
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP
www.bookspar.com | VTU NOTES | QUESTION PAPERS | NEWS | VTU RESULTS | FORUM | VTU BOOKSPAR APP