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. The line numbers reported match the line numbers you see in your text editor.

  2. SQL*Plus will automatically show the errors to you.

  3. To see the errors, enter SHOW ERRORS in SQL*Plus.

  4. If there are no syntax errors, you will receive the message NO ERRORS.

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

After creating a procedure with compilation errors, SQL*Plus displays a warning but doesn't automatically show the errors. You must explicitly type SHOW ERRORS (or SHO ERR) to see the error messages with line numbers. The line numbers in error messages often don't match text editor line numbers because Oracle counts differently. The message 'NO ERRORS' is never displayed for successful compilation.

Multiple choice
  1. It is a high level language.

  2. It is a low level language.

  3. It is a machine level language.

  4. It is an assembly level language.

  5. It is a middle level language.

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

ALGOL is a high level language.

Multiple choice
  1. malloc() is not used in C++.

  2. malloc() is type-safe but new is not type-safe.

  3. malloc() only allocates memory, while new operator allocates memory as well as constructs objects in C++.

  4. Both (2) and (3)

  5. None of these

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

Yes, this is the main advantage of using new operator over malloc() in C++.