0% found this document useful (0 votes)
32 views

Btech Cs 201 Basic Computation and Principles of Computer Programming 2019

Uploaded by

hunmfj jee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
32 views

Btech Cs 201 Basic Computation and Principles of Computer Programming 2019

Uploaded by

hunmfj jee
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 7
woo jneyeurmamayy:dy Ahttp://www.makaut.com CS/B.TECH(0)/EVEN/SEM-2/CS-201(0)/2018-19 ea at Ad ety ied tes Boge Utech CBr MAULANA ABUL KALAM AZAD UNIVERSITY OF TECHNOLOGY, WEST BENGAL Paper Code : CS-201 (Q) BASIC COMPUTATION & PRINCIPLES OF COMPUTER PROGRAMMING Time Allotted : 3 Hours Full Marks : 70 The figures in the margin indicate full marks. Candidates are required to give their answers in their own words as far as practicable. GROUP -A ( Multiple Choice Type Questions } 1. Choose the correct alternatives for any ten of the following : 10x 1=10 i) What is the output of this C code ? # include void main ( ) { double k = 0; for (k = 0:0; k<3-0; k++); printf ("%f", k); } a) 2-000000 b} 4000000 c) 3:000000 d) None of these. [ Turn over 11/3302(2)(0)-2003 —— http://www.makaut.com woo jneyeur mMmayy:dny woo jneyeuUr MM //:aHy http://www.makaut.com CS/B.TECH(O)/EVEN/SEM-2/CS-201(0)/2018-19 ii) Number of bytes required to store a float variable is a) 8 bytes b) 4 bytes c) 2 bytes d) 6 bytes, iii) Find out the output : main ( ) , { int i=1; printf ("\ntdtdtd"i, ++i, itt); } a) 331 b) 133 c) 314 d) 111, jv) The brain of any computer system is a) ALU b) Memory 2 CPU d) none of these. v) Operating system is a) Application software » System software c) _ both (a) and (b) d) none of these. 2 51 330212)(01-2009 http://www.makaut.com woo jneyeur MMay/:dny woojneyeUMM//:dHy http://www.makaut.com CS/B.TECH(O)/EVEN/SEM-2/CS-201(0)/2018-19 vi) ALU is a part of a) memory -b) CPU c) output device d) input device, vii) In hexadecimal number system, D is equivalent to the number in decimal A) 13 b) 15 c) 14 ad) 12. viii) The purpose of mode r + is to a) open for only reading b) open for only writing 2) open for both reading and writing d) none of these. http://www.makaut.com ix) Which is the range of unsigned short integer ? A) Oto 65535 b) Oto 255 c) -128 to 127 d) None of these. x) What will be the correct output of the following code ? int x = 9; aif (10) printé ("%d", +4x) 7 else printf ("%td", xtt) 7 a) 9 b) 10 . il ad) 12, Turn over 11/3302(2)(0)-2003 8 | http://www.makaut.com woo jneyeur MMay/:dny woo jneyeuUr MM //:aHy http://www.makaut.com CS/B.TECH(O)/EVEN/SEM-2/CS-201(0)/2018-19 xi) A 64-bit microprocessor has the word length equal to a) 2 bytes b) 4 bytes c) 6 bytes d) 8 bytes. xii) Find the right output : H#define CAL(x) x*x*x void main ( ) { int i = 3, 3; 3 = CAL (i+2) printf ("#d", 3); a) 125 “by 17 c) 27 d) none of these. GROUP -B { Short Answer Type Questions ) Answer any three of the following. 3%5=15 we Describe the functions of various units of a digital computer using a neat block diagram. ay Write & flowchart to find the sum of the first 3. n prime numbers, where n should be given by the 3 user. 4 41/3302(2NO}-200 http://www.makaut.com woo jneyeur MMay/:dny woo jneyeuUr MM //:aHy 4. A) b) a) b) http://www.makaut.com CS/B.TECH(O)/EVEN/SEM-2/CS-201(0)/2018-19 What is logical operator ? 2 What are the advantages of 2's complement over I's complement ? 1 Perform the subtraction with the following binary numbers using 2's complement and 1's complement respectively : 2+2 i) 11010~1101 ii) 10010-10011. What is the difference between Calloc( ) and Malloc( ) functions ? 3 What is void printer ? Give one example. 2 What is call by value and call by reference ? Explain with examples. 5 GROUP - C ( Long Answer Type Questions } Answer any three of the following. 3x 15 =45 Input two strings and pass them to a user defined 7. .a) function to compare them. . b) Write a program to input a n x n matrix and print the maximum element of the matrix. 7+8 Tu er 11/3302(2){O)-2003 5 i Y mn ove http://www.makaut.com woo jneyeur MMay/:dny woojneyeUMM//:dHy http://www.makaut.com CS/B.TECH(O)/EVEN/SEM-2/CS-201(0)/2018-19 8. a) b) c) ‘& & Differentiate between Compiler and Interpreter. 2 Convert the following numbers as indicated : 6 i) Decimal 225-225 to binary ii) Binary 11010111-110 to octal iii) Hexadecimal 2AC5.D to binary. Why is NAND gate called Universal gate ? Explain with example. 3 What is bit-wise operator ? 4 What is a function ? What are the advantages of using functions ? What is the purpose of return statement ? http://www.makaut.com 5 Differentiate between while and do-while statements with suitable example. 5 c) Write a C function to find the square of a:number and use.this function in main ( ) function to evaluate x?+y?+z", where x, y, 2 are read through standard input device. 5 10. a) What are auto, external and static variables ? Explain their uses with suitable examples. 5 b) What is the difference between structure and union in C programming ? Supplement with example. 5 ) what is an array of pointers ? Explain with c 5 example. 6 11 13302{2)(0)-2008 http://www.makaut.com woo jneyeur MMay/:dny woojneyeUMM//:dHy http://www.makaut.com CS/B.TECH(0)/EVEN/SEM-2/CS-201(0}/2018-19 . Write short notes on any three of the following a) Dynamic allocation of the memory >) Bitwise Operator 5 c) Pointer Arithmetic d) Functions of Memory unit of a Digital Comp’ e) Array of Structure f) Pointer to function and Function retu Pointer. http://www.makaut.com Whatsapp @ 9300930012 Your old paper & get 10/- qed dud sat aitx 10 sua ord, Paytm or Google Pay & 1133021201200 http://www.makaut.com 3x5 yuter ming a woo jneyeur MMay/:dny

You might also like