Computer Knowledge

Programming Languages and Compilers

2,284 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. Must use a sorted array

  2. Requirement of sorted array is expensive when a lot of insertion and deletions are needed

  3. There must be a mechanism to access middle element directly

  4. Binary search algorithm is not efficient when the data elements are more than 1000

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

null

Multiple choice
  1. API for developing 32-bit applications

  2. text editor for UNIX-based computer systems

  3. program that flags suspicious constructs

  4. UNIX utility that parses text

  5. screen-oriented text editor

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

PICO stands for pine composer. It is an easy-to-use text editor for UNIX and UNIX-based system.

Multiple choice
  1. The UML is a language for visualising.

  2. The UML is a language for constructing.

  3. The UML is a language for modeling.

  4. The UML is a language for documenting.

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

This means that it is possible to map from a model in the UML to a programming language such as JAVA, C++ or VB, or even to table in the relational database or the persistent store of an object oriented database.

Multiple choice
  1. 3E

  2. 1E

  3. 87

  4. 2E

  5. FE

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

A contains F0 (in hexadecimal), F0 can be written as 1111 0000 STC(set Carry Flag) CF=1 RRC(Rotate Right ACCUMULATOR with Carry) Now Rotate the accumulator content to the right with carry thrice Initial data 1 1111 0000 First Rotation 0 1111 1000 second Rotation 0 0111 1100 Third Rotation 0 0011 1110 In Hexadecimal 0011 1110 is written as 3E