Computer Knowledge

Programming Languages and Compilers

1,170 Questions

Programming languages and compilers involve the rules, syntax, and semantics used to write and execute software programs. Key areas include scripting languages, object oriented concepts, and parsing algorithms like top down parsers. Practice these computer science questions to build proficiency for technical and computer knowledge exams.

Object oriented languagesScripting languagesCompilers and parsersProgramming syntax

Programming Languages and Compilers Questions

Multiple choice
  1. pre-processor named standard input-output

  2. user defined data type named Standard input-output

  3. header file named Standard input-output

  4. header file named Studio input-output

  5. header file named Standard integer output

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

It is a header file, which controls input and output.

Multiple choice
  1. Both procedural and OOP are supported in Java.

  2. Java supports only procedural approach towards programming.

  3. Java supports only OOP approach.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Java is a hybrid language that supports both procedural and object-oriented programming paradigms. While primarily designed as an OOP language with classes, objects, inheritance, and polymorphism, Java also supports procedural programming through static methods and primitive types. You can write procedural-style code in Java, especially in the main method or utility classes.

Multiple choice
  1. -WS-VARIABLE-1

  2. WS-VARIABLE-FOR-THE-COBOL-PROGRAM

  3. WS-VARIABLE-1*-21

  4. 09-01-21-45

  5. WS-VARIABLE-2

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

It meets all the criteria for a COBOL word.

Multiple choice
  1. It translates source code into activities (which may comprise groups of machine instructions) and immediately thereafter executes those activities.

  2. It translates source code directly into assembly language or machine instructions. The eventual end product is a file or files containing machine code.

  3. It combines a list of object modules into an executable program that can be loaded and run by the operating system.

  4. It only enables the programmer to edit the program files.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This job is performed by compiler.