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. mysql_fetch_row

  2. mysql_fetch_object

  3. mysql_fetch_array

  4. both (1) and (3)

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

mysql_fetch_array returns a row as an array with both numeric indices (0, 1, 2...) and associative keys (column names). mysql_fetch_row returns only a numeric array, while mysql_fetch_object returns an object. The function name 'array' specifically indicates it can return both types.

Multiple choice
  1. Machine language

  2. C

  3. JAVA

  4. LISP

  5. COBOL

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

A low level programming language is one that provides little or no abstraction from a computer's instruction set architecture. Generally, this refers to either machine code or assembly language.

Multiple choice
  1. Program Interpretation

  2. Program Translation

  3. Linear Search

  4. Binary Search

  5. Multiprogramming

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

This model bridges the execution gap by translating a program written in a programming language called the source program into an equivalent program in the machine or assembly language of the computer system called the target program.