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

Computer 8,9

Uploaded by

alexxjeee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Computer 8,9

Uploaded by

alexxjeee
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

COMPUTER.

SCIENCE
Chapter: ,8,9 (II) ECAT /MCAT Total Questions: 30
Date: Test Code: 09 Test Time: 60 Mins

1. C is a ______ level language


(a) High (b) Low (c) Middle (d) None
2. Which language requires no translator to execute the program
(a) C (b) C++ (c) Machine language (d) Assembly language
3. .exe file is produced by
(a) Linker (b) Loader (c) Compiler (d) Interpreter
4. Which of the following key is used to save a file
(a) F2 (b) F3 (c) F5 (d) F9
5. Void occupies how many bytes in memory
(a) 0 (b) 1 (c) 2 (d) 4
6. The extension of header file is
(a) .h (b) .hd (c) .cpp (d) .c
7. C language developed by
(a) ANSI (b) CISCO (c) Bell labs (d) None of the above
8. B language was developed by
(a) Ken Ritchie (b) Ritchie Thomson (c) Ken Thomson (d) None of the above
9. To run a program press
(a) F9 (b) F2 (c) Alt + F9 (d) Ctrl + F9
10. TC assigns a default name ______ to a new file
(a) noname.c (b) noname.b (c) noname00.cpp (d) noname00.c
11. Debug is a process of
(a) Creating bugs (b) Identifying and removing errors
(c) Identifying errors (d) Removing errors
12. Which one is used as statement terminator in C
(a) . (b) , (c) } (d) ;
13. C language was developed in ____
(a) 1962 (b) 1969 (c) 1970 (d) 1972
14. To get help in C
(a) F3 (b) F2 (c) F1 (d) F5
15. The program that modifies the c program prior to its compilation
(a) Preprocessor (b) Compiler (c) Linker (d) Loader

16. The program that modifies the c program prior to its compilation
(a) Preprocessor (b) Proprocessor (c) Linker (d) Compiler
17. a+=b is equivalent to
(a) a=b (b) b=a (c) a=a+b (d) b=b+a
18. What is the value of a after this statement a=b++; if value of b is 2
(a) 2 (b) 3 (c) 4 (d) 5
19. How many keywords are there in C language
(a) 23 (b) 32 (c) 26 (d) 62
20. Which is a valid variable name
(a) Goto (b) Int (c) C_a (d) 4abc
21. The symbol = is
(a) Comparison operator (b) Assignment operator (c) Both a and b (d) None of the above
22. How many bytes the float data type takes in memory
(a) 1 (b) 2 (c) 4 (d) 8
23. How many bytes the char data type takes in memory
(a) 1 (b) 2 (c) 4 (d) 8
24. Which one is not true about a variable in c language
(a) Can be declared anywhere in the program (b) No need to initialize
(c) Will not contain garbage if not initialized (d) All of the above
25. Which one is not a relational operator
1
(a) > (b) == (c) != (d) &&
26. Format specifier for short is
(a) %d (b) %s (c) %lf (d) %f
27. Format specifier for float is
(a) %d (b) %s (c) %lf (d) %f
28. The escape sequence for backslash is
(a) \ (b) \b (c) \t (d) \\
29. The escape sequence for backspace is
(a) \ (b) \b (c) \t (d) \\
30. What will be the output of printf(“%d”,’b’); is
(a) 65 (b) A (c) a (d) 98

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy