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

  2. local

  3. global

  4. none of the above

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

Global variables are defined outside of any function and are accessible throughout the entire program, making them available to all parts of the code.

Multiple choice
  1. if statement

  2. if - else statement

  3. switch statement

  4. none of the above

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

The switch statement is the standard C construct for multiway branching, allowing a variable to be tested for equality against a list of values.

Multiple choice
  1. ch contains the address of char variable

  2. ch is a char variable

  3. ch is going to contain a char value

  4. none of these

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

In C programming, the declaration char *ch defines ch as a pointer to a character, meaning ch stores the memory address of a character variable.