Sei sulla pagina 1di 2

MEHRAN UNIVERSITY OF ENGINEERING & TECHNOLOGY

FIRST TERM FIRST YEAR ( 1ST TERM) 05-BATCH OF B.E (CIVIL) REGULAR PRACTICAL EXAMINATION 2005 UNDER (EXTERNAL SYSTEM) SUBJECT:Introduction to Computer & C++ Programming Time Allowed: 30 Minutes ID.NO. Max. Marks.10 1. Internal Examiner ---------------Signature In Words -----------------------------------2. External Examiner ----------------

Dated: 24 05 2005 Marks Obtained:-

Q# 1 Fill in the blanks: 1. 2. 3. 4. 5. 6. 7. 8. 9. ___________ variables are known through out the programme. _____________ bus is used to transfer data. ______________ was developed in 1948, in USA. ______________ replaced the transistors as a basic component of computer. The company that made personal computing legitimate in business and industry was the _____________________ . C is widely known as the development language of the ___________ operating system. In a C + + system, a _____________________ program execute before the compilers translation phase begin. Every C ++ program begins execution at the function __________________ . An expression containing ______________ operator is true if either or both of its operands are true. 10. The array float x [ 3] [3] can hold ________ bytes in the memory.

Q # 2 Write True / False (i) Nibble is the first four bits of a byte. (ii) (iii) (iv) (v) vi) vii) viii) (ix) (x) (xi) Conversion of data into a useful shape is called Data Processing. A sequential set of instruction is called as software. A byte is a smallest memory space in the computer. The part of a computer which perform all arithmetic and logical operations is called a peripheral . Assembler is used to convert high language code. T/F A great French physicist and mathematician Blaise Pascal constructed T/F the first successful mechanical calculator, slide rule at the age of 18 years in 1642. Exite ( ) causes immediate termination of the entire C++ program T/F The programs that translate high level language into machine language T/F are called compilers. The break statement causes an exit from the program The program components in C ++ are called functions and classes. T/F T/F Contd on Page No./-2 T/F T/F T/F. T/F

(-2-) Q # 3 Encircle the correct answer: 1. The ____________ program transfers the executable image of a C ++ program from disk to memory. i) compiler ii) loader iii) linker The different arrangement of network computers is called ___________ i) Topology i) Lan ii) Data processing A pointer is _______ i) variable for storing address none of the above iii) the address of the variable 4. i) 5. Which of the following is not a key word of C++ Return ii) exit iii) look The key word _____________ introduces a structure definition. i) if else ii) switch iii) struct 3

2.

Q#4 Write the c ++ statement for

z = x 3 / 5 + tan ( u 2 + v 2 ) e x y
(b) c) d) e)

X=

b + b 2 4ac 2a

log ( x + y ) | sin x | Initialize the variable sum to zero. Add variable x to variable sum and assign the result to the variable sum. print The product is: followed by the value of the variable result THE END

Potrebbero piacerti anche