Chapter No 8
Getting Started with C
1. C is a choose which one is correct:
- High level language
- Low level language
- Assembly language
- Machine language
2. Turbo C++ can compile choose which one is correct:
- C++ programs only
- C and C++ programs
- Turbo c programs
- Turbo C++ programs only
3. Debug is the process of choose which one is correct:
- Creating bugs in the program
- Identifying and removing errors.
- Identifying errors
- Removing errors
4. A set of instruction given to the computer is called choose which one is correct:
- Hardware
- Software
- Computer language
- None
5. The computer program is written in choose which one is correct:
- English language
- Programming language
- Both (a) & (b)
- None
6. The programming languages that are close to human language are called choose which one is correct:
- High-level language
- Low-level language
- Medium-level language
- Machine language
7. is not a high level language choose which one is correct:
- C
- Java
- Assembly
- Fortran
8. The programming language that are very close to machine code are called choose which one is correct:
- High-level language
- Low-level language
- Medium-level language
- Machine language
9. is not a low-level language choose which one is correct:
- C-language
- Machine language
- Assembly language
- None
10. The computer understands the instructions only in choose which one is correct:
- Machine code
- Assembly code
- Symbolic code
- ACII code
11. language is known as fundamental computer language choose which one is correct:
- C
- Assembly
- Machine language
- Java
12. A program written in ________ language runs directly on the computer.
- C
- Machine
- Assembly
- FORTRAN
13. The symbols used to write instructions in assembly language are called choose which one is correct:
- Symbolic
- Binary code
- Mnemonics
- Nemonics
14. C was designed to write programs for choose which one is correct:
- Windows operating system
- Solaris operating system
- Unix operating system
- OS/2 operating system
15. Preprocessor directives are commands for choose which one is correct:
- Microprocessor
- Language processor
- C preprocessor
- Loader
16. Which of the following requires no translator to execute the program choose which one is correct?
- C
- C++
- Machine language
- Assembly language.
17. .exe file is produced by the choose which one is correct:
- Linker
- loader
- compiler
- interpreter
18. The program written in assembly language is translated to the machine code with the help of translator program called choose which one is correct:
- Complier
- Assembler
- Interpreter
- Decoder
19. The instructions written in machine language are in the form of choose which one is correct:
- ACSII code
- EBCDIC code
- Binary code
- Instruction code
20. languages is different for different computers choose which one is correct:
- C
- Java
- Assembly
- BASIC
21. languages requires no translator to execute the program choose which one is correct:
- C
- C++
- Machine
- Assembly
22. The translated program into machine code is called choose which one is correct:
- Source program
- Object program
- System program
- None
23. The special programs that are used to convert a source code into object code are called choose which one is correct:
- Language translator
- Language processor
- Both (a) & (b)
- Preprocessor
24. C, C++, Java, Basic etc. are examples of choose which one is correct:
- High-level languages
- Low-level languages
- Medium-level languages
- None of these
25. language translator programs is used to translate the C program choose which one is correct:
- Compiler
- Interpreter
- Assembler
- None
26. translator programs is best for debugging the source code choose which one is correct:
- Compiler
- Interpreter
- Assembler
- None
27. languages provided the basis for the development of C choose which one is correct:
- B
- C++
- Pascal
- Ada
28. Which of the following key is used to save a file choose which one is correct?
- F2
- F3
- F5
- F9
29. Void occupies how many bytes in memory
- Zero
- One
- Two
- Four
30. Which of following is not a high level language
- JAVA
- FORTRAN
- COBOL
- Assembly
31. The translated program into machine code is called
- System Program
- Machine program
- Program
- Object Program
32. C-language can be used to develop choose which one is correct:
- System programs
- Application programs
- Games
- All of these
33. C is a choose which one is correct:
- High-Level Language
- Low-Level Language
- Assembly Language
- Machine Language
34. Turbo C++ can compile choose which one is correct:
- C++ programs only
- C and C++ programs
- Turbo C programs only
- Turbo C++ programs only
35. represents the beginning of the actual program choose which one is correct:
- Header files
- Preprocessor
- Main function
- # include
36. signs represents the preprocessor directives choose which one is correct:
- &
- $
- < >
- #
37. The extension of the header file is choose which one is correct:
- c
- .doc
- .h
- .cpp
38. word is used to include the header file choose which one is correct:
- Define
- If
- Include
- While
39. The name of header file is written between choose which one is correct?
- { }
- < >
- [ ]
- ( )
40. represents the preprocessor directive choose which one is correct:
- Void main (void)
- { }
- # include <stdio.h>
- None
41. The instructions that are given to the compiler before the beginning of the source code are called choose which one is correct:
- Preprocessors
- Preprocessor directives
- Mnemonics
- None
42. signs is used at the end of statement of C program choose which one is correct:
- #
- choose which one is correct:
- .
- ;
43. massages is displayed by C-complier if semicolon is missing at end of the statement choose which one is correct:
- Semicolon missing;
- tatement missing;
- Prototype missing;
- error in program;
44. Which directory of TC contains the header files choose which one is correct?
- LIB
- DATA
- HEADER
- INCLUDE
45. Which part of the compiler handles the preprocessor directives choose which one is correct?
- Supervisor
- Shell
- Processor
- Preprocessor
46. Which one is used as statement terminator in C language
- ,
- )
- ;
47. is a correct preprocessor directive choose which one is correct:
- # include (stdio.h)
- # include <stdio.h)
- # include <stdio.h>
- # include [stdio.h]
48. The file extension of C source program is choose which one is correct:
- obj
- .exe
- cpp
- .c
49. In C, the linker creates a file with file extension choose which one is correct:
- .obj
- .exe
- .cpp
- .c
50. Preprocessor directives commands for choose which one is correct:
- Microprocessor
- Language processor
- C-complier
- Loader
51. The expression in define directive choose which one is correct:
- Can only be changes at the end of the program
- Can not be changed
- Can not be changed but can be redefined
- Can not be assigned a value
52. The file with extension obj is produced by the choose which one is correct:
- Linker
- Loader
- Compiler
- Interpreter
53. key is used to save a file choose which one is correct:
- F2
- Alt + F2
- F5
- F9
54. Which of the following language provide the basis for C language choose which one is correct?
- A
- C++
- B
- Cobol
55. errors occurs during program execution choose which one is correct:
- Syntax
- Logical
- Runtime
- None
56. The errors in the program are called choose which one is correct:
- Syntax
- Bugs
- Mistakes
- Debugging
57. _______ is the process of translating source code into machine code is called choose which one is correct:
- Compiling
- Executing
- Linking
- Debugging
58. The process of running the program on the computer is called choose which one is correct:
- Compiling
- Executing
- Linking
- Debugging
59. C language was developed in _______
- 1962
- 1969
- 1970
- 1972
60. Programming language B was developed by
- Ken Ritchie
- Ritchie Thompson
- Ken Thompson
- None of Above
61. To open a new file in Turbo C editor which menu is used
- Edit
- Open
- Tools
- File
62. To get help in turbo c
- F3
- F2
- F1
- F5
63. To switch between editor and output window
- Alt + F3
- Alt + F2
- Alt + F1
- Alt + F5
64. To compile a program press
- F9
- Alt + F9
- Ctrl + F9
- Ctrl + F5
65. The process of linking library files with object code is called choose which one is correct:
- Compiling
- Executing
- Linking
- Debugging
66. C language was developed by choose which one is correct:
- Von Neumann
- Dennis Ritchie
- Charles Babbage
- John Backus
67. An IDE of Turbo C consists of choose which one is correct:
- Text Editor
- Debugger
- Linker
- All of these
68. The file extension of object file of C program is choose which one is correct:
- .obj
- .exe
- .cpp
- .c
69. To run a program press
- F9
- Alt + F9
- Ctrl + F9
- Ctrl + F5
70. TC assigns a default name ______________ to a new file
- NONAME.C
- NONAME0.CPP
- NONAME00.C
- NONAME00.CPP
71. Computer cannot under stand
- Program
- Source Program
- Object Program
- All of Above
72. Which produces object program from source program
- Program
- Compiler
- Debugger
- Computer
73. A lot of ready made functionality available in
- Source Files
- Library Files
- Object Files
- None of Above
74. Which program produces object(obj) file
- Compiler
- Linker
- Loader
- All of Above
75. The .exe file is created by choose which one is correct:
- Loader
- Compiler
- Linker
- Interpreter
76. The basic structure of C program consists of choose which one is correct:
- Main () function
- Preprocessor directives
- Body of program
- All
77. requires no translator program to translate the program into machine language choose which one is correct?
- C/C++
- Machine
- Assembly
- Basic
78. can only detect the syntax errors choose which one is correct:
- Linker
- Loader
- Debugger
- Compiler
79. The program that modifies the c program prior to its compilation
- Preprocessor
- Compiler
- Linker
- Loader
80. A name that is replaced by a particular constant value before the program is sent to the compiler
- Micro
- Constant
- Constant Macro
- Constant Micro
81. The error that is due to some illegal operations in a program is called
- Run Time Errors
- Syntax Errors
- Logical Errors
- Mathematical Errors
82. A language which is very close to computer
- High Level
- Machine Language
- Assembly Language
- Human Language
83. A language which is very close to humans
- High Level
- Machine Language
- Assembly Language
- None of Above
84. errors cannot be detected by compiler choose which one is correct:
- Syntax
- Logical
- Runtime
- Both b & c
85. Spelling errors in the program are example of choose which one is correct:
- Syntax errors
- Logical errors
- Runtime errors
- None
86. Division by zero is an examples of choose which one is correct:
- Syntax errors
- Logical errors
- Runtime errors
- None
87. is not high-level language choose which one is correct:
- C
- Java
- Assembly
- BASIC
88. is the low-level language choose which one is correct:
- C++
- Assembly
- Machine
- Both b & c
89. The compiler can detect ________ errors at the time of compilation
- Run Time Errors
- Syntax Errors
- Logical Errors
- Mathematical Errors
90. Which language is hardware dependent
- High Level
- Low Level
- Human Language
- All of Above
91. language is suitable for developing business application choose which one is correct:
- C++
- Assembly
- Basic
- COBOL
92. is a type of language translator choose which one is correct:
- Assembler
- Compiler
- Interpreter
- All of these
93. translators translates the source code into object code as a whole choose which one is correct:
- Assembler
- Compiler
- Interpreter
- None
94. translators translates the source code into object code statement-by statement choose which one is correct:
- Assembler
- Compiler
- Interpreter
- None