Vous êtes sur la page 1sur 2

UNIVERSITY COLLEGE OF ENGINEERING KAKINADA (A)

DEPARTMENT OF PETROLEUM ENGINERRING


I B.TECH (Reg), II Semester, I Mid Examination (MCQ) : Mar-2019
Sub : C PROGRAMMING Max. Marks : 20 Time : 03:50PM to 04:00PM
Paper Setter : Smt M.S.V.M.S.Vyshnavi Date : 07-03-2019
Name : _________________________________________ Roll No : ____________________
1. Which of the following retains the information it’s storing when the power to the system is turned off? [ ]
A. CPU B. ROM C. RAM D. DIMM

2. Which of the following statement is correct? [ ]


A. 1 KB = 1024 bytes B. 1 MB=2048 bytes
C. 1 MB = 1000 kilobytes D. 1 KB = 1000 bytes

3. Software is a set of programs, which is designed to perform a well defined function and there are two types of
software, application and system. The following are all application software except for [ ]
A. Microsoft Word B. Microsoft Excel C. Microsoft Power Point D. Microsoft Windows

4. The fourth generation computers are based on [ ]


A. Transistor B. Integrated circuit C. VLSI microprocessor D. ULSI microprocessor

5. The computer language used for artificial intelligence is [ ]


A. FOTRAN B. PROLOG C. C D. COBOL

6. In a college,students are asked to develop a software. Which model would be preferable? [ ]


A. Waterfall model B. Spiral model C. Agile model D. Code and fix model

7. Validation is responsibility of [ ]
A. Developer B. Designer C. Tester D. QA Team

8. *@Ac# is a type of ________________ data. [ ]


A. Symbolic B. Alphanumeric C. Alphabetic D. Numeric

9. The program written by the programmer in high level language is called _____________ [ ]
A. Object Program B. Source Program C. Assembled Program D. Compiled Program

10. What will be the output of the following C code? [ ]


#include <stdio.h>
void foo(float *);
int main()
{
int i = 10, *p = &i;
foo(&i);
}
void foo(float *p)
{
printf("%f\n", *p);
}
A. 10.000000 B. 0.000000 C. Compile time error D. Undefined behaviour

11. Which keyword can be used for coming out of recursion? [ ]


A. break B. return C. exit D.Both a & b
12. Which of the following is not a valid variable name declaration? [ ]
A. int _a3; B. int a_3; C. int 3_a; D. int _3a

13. What is the best data type definition for Oracle when a field is alphanumeric and has a fixed length? [ ]
A. VARCHAR2 B. CHAR C. LONG D. NUMBER

14. Which of the following statements are true? [ ]


A. In a while loop, the loop-control variable must be initialized before the loop.
B. The last statement in a sentinel-value controlled loop is normally an input statement.
C. In a nested loop, the inner loop goes through all of its iterations for every single iteration of an outer loop.
D. All of the above

15. Computer programmers often refer to memory addresses using ____notation, or base 16. [ ]
A. Binary B. Indirect
C. Mathematical D. Hexadecimal

16. Operators with the same precedence are evaluated in which manner? [ ]
A. Left to Right B. Right to Left C. Can’t say D. None of the mentioned

17. The output of the expression ‘bin(29)’ is [ ]


A. ‘0b10111’ B. ‘0b11101’ C. ‘0b11111’ D. ‘0b11011’

18. Which of the following Boolean expressions is not logically equivalent to the other three? [ ]
A. not(-6<0 or-6>10) B. -6>=0 and -6<=10
C. not(-6<10 or-6==10) D. not(-6>10 or-6==10)

19. What is the output of the following? [ ]


True = False
while True:
print(True)
break
A. True B. False C. None D. None of the Mentioned

20. What is the output of the below program? [ ]


def sayHello():
print('Hello World!')
sayHello()
sayHello()
A. Hello World!
Hello World!
B. ‘Hello World!’
‘Hello World!’
C. Hello
Hello
D. None of the mentioned

Vous aimerez peut-être aussi