12th Class Class Computer Mcqs Chapter No 8 | 2nd Year Computer Mcqs Chapter Wise Pdf

Print/Downlaod pdf

Chapter No 8

Getting Started with C

1. C is a choose which one is correct:

  1. High level language
  2. Low level language
  3. Assembly language
  4. Machine language


2. Turbo C++ can compile choose which one is correct: 

  1. C++ programs only
  2. C and C++ programs 
  3. Turbo c programs
  4. Turbo C++ programs only

3. Debug is the process of choose which one is correct: 

  1. Creating bugs in the program
  2. Identifying and removing errors.
  3. Identifying errors
  4. Removing errors 

4. A set of instruction given to the computer is called choose which one is correct:

  1. Hardware
  2. Software
  3. Computer language
  4. None 

5. The computer program is written in choose which one is correct: 

  1. English language
  2. Programming language
  3. Both (a) & (b)
  4. None 

6. The programming languages that are close to human language are called choose which one is correct:

  1. High-level language
  2. Low-level language
  3. Medium-level language
  4. Machine language

7.          is not a high level language choose which one is correct: 

  1. C
  2. Java
  3. Assembly
  4. Fortran

8. The programming language that are very close to machine code are called choose which one is correct:

  1. High-level language
  2. Low-level language
  3. Medium-level language
  4. Machine language

9.           is not a low-level language choose which one is correct:

  1. C-language
  2. Machine language
  3. Assembly language
  4. None 

10. The computer understands the instructions only in choose which one is correct: 

  1. Machine code
  2. Assembly code
  3. Symbolic code
  4.  ACII code 

11.         language is known as fundamental computer language choose which one is correct:

  1. C
  2. Assembly
  3. Machine language
  4. Java

12. A program written in ________ language runs directly on the computer. 

  1. C
  2. Machine
  3. Assembly
  4. FORTRAN

13. The symbols used to write instructions in assembly language are called choose which one is correct:

  1. Symbolic
  2. Binary code
  3. Mnemonics
  4. Nemonics

14. C was designed to write programs for choose which one is correct: 

  1. Windows operating system
  2. Solaris operating system
  3. Unix operating system
  4. OS/2 operating system

  •  

15. Preprocessor directives are commands for choose which one is correct:

  1. Microprocessor
  2. Language processor
  3. C preprocessor
  4. Loader

16. Which of the following requires no translator to execute the program choose which one is correct?

  1. C
  2. C++
  3. Machine language
  4. Assembly language.

17. .exe file is produced by the choose which one is correct: 

  1. Linker
  2.  loader 
  3. compiler
  4. 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:

  1. Complier
  2. Assembler
  3. Interpreter
  4. Decoder

19. The instructions written in machine language are in the form of choose which one is correct:  

  1. ACSII code
  2. EBCDIC code
  3. Binary code
  4. Instruction code 

20.          languages is different for different computers choose which one is correct: 

  1. C
  2. Java
  3. Assembly
  4. BASIC

21.         languages requires no translator to execute the program choose which one is correct:

  1. C
  2. C++
  3. Machine
  4. Assembly

22. The translated program into machine code is called choose which one is correct:

  1. Source program
  2. Object program
  3. System program
  4. None 

23. The special programs that are used to convert a source code into object code are  called choose which one is correct:

  1. Language translator
  2. Language processor
  3. Both (a) & (b)
  4. Preprocessor

24. C, C++, Java, Basic etc. are examples of choose which one is correct:

  1. High-level languages
  2. Low-level languages
  3. Medium-level languages
  4. None of these 

25.           language translator programs is used to translate the C program choose which one is correct:

  1. Compiler
  2. Interpreter
  3. Assembler
  4. None

26.             translator programs is best for debugging the source code choose which one is correct:  

  1. Compiler
  2. Interpreter
  3. Assembler
  4. None

27.          languages provided the basis for the development of C choose which one is correct:

  1. B
  2. C++
  3. Pascal
  4. Ada

28. Which of the following key is used to save a file choose which one is correct? 

  1. F2
  2. F3
  3. F5
  4. F9

29. Void occupies how many bytes in memory 

  1. Zero
  2. One 
  3. Two
  4. Four 

30. Which of following is not a high level language

  1. JAVA
  2. FORTRAN
  3. COBOL
  4. Assembly

31. The translated program into machine code is called 

  1. System Program
  2. Machine program
  3. Program
  4. Object Program

32. C-language can be used to develop choose which one is correct: 

  1. System programs
  2. Application programs 
  3. Games
  4. All of these

33. C is a choose which one is correct:

  1. High-Level Language
  2. Low-Level Language
  3. Assembly Language
  4. Machine Language

34. Turbo C++ can compile choose which one is correct: 

  1. C++ programs only
  2. C and C++ programs
  3. Turbo C programs only
  4. Turbo C++ programs only 

35.        represents the beginning of the actual program choose which one is correct: 

  1. Header files
  2. Preprocessor
  3. Main function
  4. # include 

36.          signs represents the preprocessor directives choose which one is correct:

  1. &
  2. < >

37. The extension of the header file is choose which one is correct:

  1. c
  2. .doc
  3. .h
  4. .cpp 

38.        word is used to include the header file choose which one is correct: 

  1. Define
  2.  If
  3. Include
  4. While

39. The name of header file is written between choose which one is correct?

  1. { }
  2.  < > 
  3. [ ]
  4. ( )

40.          represents the preprocessor directive choose which one is correct:

  1. Void main (void)
  2. { } 
  3. # include <stdio.h>
  4. None 

41. The instructions that are given to the compiler before the beginning of the source  code are called choose which one is correct:

  1. Preprocessors
  2. Preprocessor directives
  3. Mnemonics
  4. None 

42.       signs is used at the end of statement of C program choose which one is correct: 

  1. #
  2.  choose which one is correct: 
  3.  .
  4. ;

43.           massages is displayed by C-complier if semicolon is missing at end of  the statement choose which one is correct:

  1. Semicolon missing;
  2. tatement missing;
  3. Prototype missing;
  4. error in program;

44. Which directory of TC contains the header files choose which one is correct? 

  1. LIB
  2. DATA
  3. HEADER
  4. INCLUDE

45. Which part of the compiler handles the preprocessor directives choose which one is correct?  

  1. Supervisor
  2. Shell
  3. Processor
  4. Preprocessor

46. Which one is used as statement terminator in C language 

  1.  
  2.  ,
  3.  )
  4.  ;

47.         is a correct preprocessor directive choose which one is correct:

  1. # include (stdio.h)
  2. # include <stdio.h)
  3. # include <stdio.h>
  4.  # include [stdio.h] 

48. The file extension of C source program is choose which one is correct: 

  1. obj
  2. .exe
  3. cpp
  4.  .c 

49. In C, the linker creates a file with file extension choose which one is correct:

  1. .obj
  2.  .exe 
  3. .cpp
  4.  .c

50. Preprocessor directives commands for choose which one is correct: 

  1. Microprocessor
  2. Language processor
  3. C-complier
  4. Loader

51. The expression in define directive choose which one is correct: 

  1. Can only be changes at the end of the program
  2. Can not be changed
  3. Can not be changed but can be redefined 
  4. Can not be assigned a value 

52. The file with extension obj is produced by the choose which one is correct: 

  1. Linker
  2. Loader
  3. Compiler
  4. Interpreter

53.        key is used to save a file choose which one is correct:

  1. F2
  2. Alt + F2
  3. F5
  4. F9

54. Which of the following language provide the basis for C language choose which one is correct? 

  1. A
  2. C++
  3. B
  4. Cobol 

55.        errors occurs during program execution choose which one is correct: 

  1. Syntax
  2. Logical
  3. Runtime
  4. None 

56. The errors in the program are called choose which one is correct:

  1. Syntax
  2. Bugs 
  3. Mistakes
  4. Debugging 

57. _______ is the process of translating source code into machine code is called choose which one is correct: 

  1. Compiling
  2. Executing
  3. Linking
  4. Debugging 

58. The process of running the program on the computer is called choose which one is correct:

  1. Compiling
  2. Executing
  3. Linking
  4. Debugging 

59. C language was developed in _______ 

  1. 1962
  2. 1969 
  3. 1970
  4. 1972

60. Programming language B was developed by 

  1. Ken Ritchie
  2. Ritchie Thompson
  3. Ken Thompson
  4. None of Above 

61. To open a new file in Turbo C editor which menu is used 

  1. Edit
  2.  Open 
  3. Tools
  4. File

62. To get help in turbo c 

  1. F3
  2. F2
  3. F1
  4. F5

63. To switch between editor and output window 

  1. Alt + F3
  2. Alt + F2
  3. Alt + F1
  4. Alt + F5

64. To compile a program press 

  1. F9
  2. Alt + F9
  3. Ctrl + F9
  4. Ctrl + F5

65. The process of linking library files with object code is called choose which one is correct: 

  1. Compiling
  2. Executing
  3. Linking
  4. Debugging 

66. C language was developed by choose which one is correct: 

  1. Von Neumann
  2. Dennis Ritchie
  3. Charles Babbage
  4.  John Backus 

67. An IDE of Turbo C consists of choose which one is correct: 

  1. Text Editor
  2. Debugger
  3. Linker
  4. All of these

68. The file extension of object file of C program is choose which one is correct:

  1. .obj
  2. .exe
  3. .cpp
  4.  .c 

69. To run a program press 

  1. F9
  2. Alt + F9
  3. Ctrl + F9
  4. Ctrl + F5

70. TC assigns a default name ______________ to a new file 

  1. NONAME.C
  2. NONAME0.CPP
  3. NONAME00.C
  4. NONAME00.CPP

71. Computer cannot under stand 

  1. Program
  2. Source Program
  3. Object Program
  4. All of Above 

72. Which produces object program from source program 

  1. Program
  2. Compiler
  3. Debugger
  4. Computer  

73. A lot of ready made functionality available in

  1. Source Files
  2. Library Files
  3. Object Files
  4. None of Above 

74. Which program produces object(obj) file 

  1. Compiler
  2. Linker
  3. Loader
  4. All of Above 

75. The .exe file is created by choose which one is correct:

  1. Loader
  2. Compiler
  3. Linker
  4. Interpreter

76. The basic structure of C program consists of choose which one is correct: 

  1. Main () function
  2. Preprocessor directives
  3. Body of program
  4. All

77.            requires no translator program to translate the program into machine  language choose which one is correct?

  1. C/C++
  2. Machine
  3. Assembly
  4. Basic

78.          can only detect the syntax errors choose which one is correct: 

  1. Linker
  2. Loader
  3. Debugger
  4. Compiler

79. The program that modifies the c program prior to its compilation

  1. Preprocessor
  2. Compiler 
  3. Linker
  4. Loader

80. A name that is replaced by a particular constant value before the program is sent  to the compiler 

  1. Micro
  2. Constant 
  3. Constant Macro
  4. Constant Micro 

81. The error that is due to some illegal operations in a program is called 

  1. Run Time Errors
  2. Syntax Errors
  3. Logical Errors
  4. Mathematical Errors

82. A language which is very close to computer 

  1. High Level
  2. Machine Language
  3. Assembly Language
  4. Human Language 

83. A language which is very close to humans 

  1. High Level
  2. Machine Language 
  3. Assembly Language
  4. None of Above 

84.          errors cannot be detected by compiler choose which one is correct:

  1. Syntax
  2. Logical
  3. Runtime
  4. Both b & c

85. Spelling errors in the program are example of choose which one is correct:

  1. Syntax errors
  2. Logical errors
  3. Runtime errors
  4. None 

86. Division by zero is an examples of choose which one is correct: 

  1. Syntax errors
  2. Logical errors
  3. Runtime errors
  4. None 

87.           is not high-level language choose which one is correct:

  1. C
  2. Java
  3. Assembly
  4. BASIC

88.        is the low-level language choose which one is correct: 

  1. C++
  2. Assembly
  3. Machine
  4. Both b & c

89. The compiler can detect ________ errors at the time of compilation 

  1. Run Time Errors
  2. Syntax Errors
  3. Logical Errors
  4. Mathematical Errors

90. Which language is hardware dependent 

  1. High Level
  2. Low Level
  3. Human Language
  4. All of Above 

91.          language is suitable for developing business application choose which one is correct: 

  1. C++
  2. Assembly
  3. Basic
  4. COBOL

92.         is a type of language translator choose which one is correct:

  1. Assembler
  2. Compiler
  3. Interpreter
  4. All of these

93.         translators translates the source code into object code as a whole choose which one is correct:

  1. Assembler
  2. Compiler
  3. Interpreter
  4. None 

94.        translators translates the source code into object code statement-by statement choose which one is correct:

  1. Assembler
  2. Compiler
  3. Interpreter
  4. None