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. line wise

  2. entire programme at once

  3. a set of programme at a time

  4. none of these

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

Interpreters process source code line by line, translating and executing each statement before moving to the next. This differs from compilers, which translate the entire program into machine code before execution. The "line wise" option accurately describes this sequential processing.

Multiple choice
  1. This code finds the summation of the numbers from 5 to 15.

  2. This code finds the summation of 10 numbers.

  3. This code prints multipliers of 3 (from 3 to 15).

  4. This code finds the summation of the numbers from 3 to 15.

  5. There is error in the code.

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

This is the correct meaning of the given code.

Multiple choice
  1. Dim i as integerPrivate Sub Command1_Click ()i = 1Do until i > 5Print computer; ii = i + 1LoopEnd Sub

  2. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 5Print computer; ii = i + 1LoopEnd Sub

  3. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1LoopEnd Sub

  4. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 8Print computer; ii = i + 1;LoopEnd Sub

  5. Dim i as integerPrivate Sub Command1_Click ()i = 1Do while i <= 3Print computer; ii = i + 1;LoopEnd Sub

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

This is the correct code.