1. Home
  2. GK Questions
  3. Computer Awareness
  4. Programming Concepts

Programming Concepts — GK Questions with Answers

42 questions
  1. Instructions that direct the computer’s processing work are known as —
    1. Programs
    2. Processors
    3. Input devices
    4. Memory modules
    Show answer

    Answer: (A) Programs

    A set of instructions = a program.

  2. Rules used to instruct the computer which operations to do —
    1. Procedural language
    2. Structures
    3. Natural language
    4. Programming language
    Show answer

    Answer: (D) Programming language

    This is a programming language.

  3. A program ready to run that needs no alteration —
    1. Interpreter
    2. High level
    3. Compiler
    4. Executable
    Show answer

    Answer: (D) Executable

    An executable program is ready.

  4. Languages that can interact easily with the hardware —
    1. High-level
    2. Low-level
    3. Middle-level
    4. All of the above
    Show answer

    Answer: (B) Low-level

    Low level is close to the hardware.

  5. Which statement about machine language is true?
    1. Programs were first written in it
    2. The computer understands no other language
    3. It varies with the type of computer
    4. All of these
    Show answer

    Answer: (D) All of these

    All three statements are true.

  6. The use of a combination of 1s and 0s is a feature of which language?
    1. High-level language
    2. PASCAL
    3. Machine language
    4. C
    Show answer

    Answer: (C) Machine language

    Binary = machine language.

  7. All computers finally execute which programs?
    1. BASIC
    2. COBOL
    3. Machine language
    4. FORTRAN
    Show answer

    Answer: (C) Machine language

    All the others are translated into machine language.

  8. In assembly language —
    1. Alphabetic codes replace binary
    2. Writing programs is the easiest
    3. No translation is needed
    4. All of the above
    Show answer

    Answer: (A) Alphabetic codes replace binary

    Mnemonics = alphabetic codes.

  9. Which language is CPU dependent?
    1. C
    2. Assembly
    3. Java
    4. All except Java
    Show answer

    Answer: (B) Assembly

    Assembly is machine dependent.

  10. The bridge between raw hardware and the programming layer —
    1. Medium-level language
    2. Low-level language
    3. High-level language
    4. Both (1) and (2)
    Show answer

    Answer: (A) Medium-level language

    C is medium level.

  1. A machine-independent language —
    1. High-level
    2. Low-level
    3. Assembly
    4. Machine language
    Show answer

    Answer: (A) High-level

    High-level is not tied to one computer.

  2. The computer language used for calculation —
    1. LOGO
    2. FORTRAN
    3. BASIC
    4. C++
    Show answer

    Answer: (B) FORTRAN

    FORTRAN = Formula Translation.

  3. A mathematically oriented language for scientific problems —
    1. Fortran
    2. Cobol
    3. Lisp
    4. Prolog
    Show answer

    Answer: (A) Fortran

    Scientific/mathematical = FORTRAN.

  4. FORTRAN stands for —
    1. Formal Translation
    2. Formative Translation
    3. Formal Transaction
    4. Formula Translation
    Show answer

    Answer: (D) Formula Translation

    Formula Translation.

  5. The main application area of ALGOL —
    1. General
    2. Scientific
    3. Engineering
    4. Commercial
    Show answer

    Answer: (B) Scientific

    ALGOL is scientific.

  6. LISP is designed for —
    1. Artificial intelligence
    2. GUI
    3. CUI
    4. Optical fibre
    Show answer

    Answer: (A) Artificial intelligence

    LISP = List Processing, for AI.

  7. Which language is used for business applications?
    1. LOGO
    2. COBOL
    3. BASIC
    4. FORTRAN
    Show answer

    Answer: (B) COBOL

    COBOL = Common Business Oriented Language.

  8. In which year was C developed by Dennis Ritchie?
    1. 1970
    2. 1971
    3. 1972
    4. 1973
    Show answer

    Answer: (C) 1972

    1972.

  9. Who developed C++?
    1. Dennis Ritchie
    2. Charles Babbage
    3. Niklaus Wirth
    4. Bjarne Stroustrup
    Show answer

    Answer: (D) Bjarne Stroustrup

    Stroustrup, 1985.

  10. The computer language used on the Internet —
    1. PASCAL
    2. Java
    3. BASIC
    4. LOGO
    Show answer

    Answer: (B) Java

    Java is Internet oriented.

  1. The language used for the development of various games —
    1. C
    2. C++
    3. Java
    4. SQL
    Show answer

    Answer: (B) C++

    C++ is object oriented.

  2. A language for creating special programs such as applets —
    1. Java
    2. Cable
    3. Domain name
    4. COBOL
    Show answer

    Answer: (A) Java

    Applet = Java.

  3. Which are interpreted languages?
    1. C
    2. C++
    3. Java
    4. Both Java and Visual Basic
    Show answer

    Answer: (D) Both Java and Visual Basic

    Visual Basic is interpreted; Java is both compiled and interpreted.

  4. Which is not a computer language —
    1. BASIC
    2. COBOL
    3. LOTUS
    4. FORTRAN
    Show answer

    Answer: (C) LOTUS

    LOTUS is a software name.

  5. Which class of languages do C, BASIC, COBOL and Java belong to?
    1. Low level
    2. Computer
    3. System programming
    4. High level
    Show answer

    Answer: (D) High level

    High-level languages.

  6. The translator program used for assembly language —
    1. Compiler
    2. Interpreter
    3. Translation
    4. Assembler
    Show answer

    Answer: (D) Assembler

    The assembler.

  7. The function of an assembler —
    1. Convert BASIC into machine language
    2. Convert high-level language into machine language
    3. Convert assembly language into machine language
    4. Convert assembly into low-level
    Show answer

    Answer: (C) Convert assembly language into machine language

    Assembly → machine.

  8. Not true about an assembler —
    1. Translates assembly language into machine language
    2. It translates the C program
    3. It is a translating program
    4. Both (1) and (3)
    Show answer

    Answer: (B) It translates the C program

    A compiler translates C.

  9. What is a compiler?
    1. A title for the computer operator
    2. A part that stores information
    3. An operator of Boolean algebra
    4. It turns a source program into object code
    Show answer

    Answer: (D) It turns a source program into object code

    Compiler = source to object.

  10. Compiling creates a(n) —
    1. Error-free program
    2. Program specification
    3. Subroutine
    4. Executable program
    Show answer

    Answer: (D) Executable program

    An executable results.

  1. What do we call the readable form of a high-level program —
    1. Word size
    2. Source code
    3. Instruction set
    4. Application
    Show answer

    Answer: (B) Source code

    Source code.

  2. Second-generation languages consist of —
    1. Machine language
    2. Assembly language
    3. Java
    4. Visual Basic
    Show answer

    Answer: (B) Assembly language

    2GL = assembly.

  3. The generation with statements similar to human language —
    1. 1GL
    2. 2GL
    3. 3GL
    4. 4GL
    Show answer

    Answer: (D) 4GL

    4GL.

  4. What is a fault in a program named —
    1. Bug
    2. Debug
    3. Virus
    4. Noise
    Show answer

    Answer: (A) Bug

    Bug.

  5. The error from trying to read a file without opening it is a(n) —
    1. Execution (runtime) error
    2. Built-in message
    3. User-defined message
    4. Half message
    Show answer

    Answer: (A) Execution (runtime) error

    A mistake made while running.

  6. Which error occurs when the rules of the language are not followed?
    1. Syntax
    2. Semantic
    3. Logical
    4. Runtime
    Show answer

    Answer: (A) Syntax

    Rules = syntax.

  7. The error that gives wrong or undesired output —
    1. Syntax
    2. Semantic
    3. Logical
    4. Runtime
    Show answer

    Answer: (C) Logical

    A fault in the output = logical.

  8. A series of procedures, step by step, for finishing a task —
    1. Algorithm
    2. Hardware program
    3. Software
    4. Firmware program
    Show answer

    Answer: (A) Algorithm

    Algorithm.

  9. Words a language holds back for itself —
    1. Control words
    2. Control structures
    3. Reserved words
    4. Reserved keys
    Show answer

    Answer: (C) Reserved words

    Reserved words.

  10. A cross between human language and a programming language —
    1. Pseudocode
    2. Java
    3. The Java virtual machine
    4. The compiler
    Show answer

    Answer: (A) Pseudocode

    An informal description.

  11. In programming, repeating some statements is usually called —
    1. Looping
    2. Control structure
    3. Compiling
    4. Structure
    Show answer

    Answer: (A) Looping

    Looping.

  12. A written description of a program’s functions —
    1. Explanatory instructions
    2. GUI
    3. Plug and play
    4. Documentation
    Show answer

    Answer: (D) Documentation

    Documentation.

More chapters in this subject