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
-
class classname {varibale declaration function declaration};
-
class {variables; function;};
-
class classname{variables function};
-
class classname;{ };
-
class classname {member variables; member function;}
A
Correct answer
Explanation
This is the correct syntax of declaring a class and members of the class.
-
Windows 98
-
PASCAL
-
FORTRAN
-
C++
A
Correct answer
Explanation
Windows 98 is an operating system, not a programming language. PASCAL, FORTRAN, and C++ are all well-established programming languages used for different applications - from scientific computing to system programming.
-
Coding
-
Processing
-
Programming
-
File
A
Correct answer
Explanation
Coding refers to the process of writing instructions in a programming language that computers can execute. While programming is a broader term encompassing design and logic, coding specifically means writing the actual code. Processing is general computation, and file refers to data storage.
-
MS - OFFICE
-
ORACLE
-
JAVA
-
FLASH
C
Correct answer
Explanation
JAVA is a programming language. MS-OFFICE is application software, ORACLE is a database management system, and FLASH is animation software - none are programming languages themselves.
-
Peter notorn
-
Patrick notron
-
Dennis Ritchie
-
David mark
C
Correct answer
Explanation
Dennis Ritchie created the C programming language at Bell Labs in the 1970s. C became one of the most influential languages, serving as the foundation for many modern languages like C++, Java, and Python.
-
A programming language
-
A run-time environment
-
A class library
-
all of the above
D
Correct answer
Explanation
Java encompasses multiple components: the programming language syntax, the Java Virtual Machine (JVM) runtime environment that executes Java bytecode, and the extensive Java Class Library frameworks that provide pre-built functionality.
-
Control worlds
-
Reserved words
-
Control structures
-
Reserved keys
-
None of these
B
Correct answer
Explanation
Option (2) is the correct answer.
-
4GLs
-
macro languages
-
object-oriented languages
-
visual programming languages
-
None of these
D
Correct answer
Explanation
Visual programming languages like VBA (Visual Basic for Applications) are built into user applications such as Microsoft Word and Excel. They allow users to automate tasks and customize application behavior through programming.
B
Correct answer
Explanation
Programming languages on the .Net framework compile into an intermediate language known as MSIL.
-
application program
-
source program
-
assembler program
-
None of these
-
-
B
Correct answer
Explanation
It is a program written by a programmer, which is converted into an object program, written in machine language, by the compiler.
-
High level
-
Low level
-
Assembly
-
Machine level
-
Compiler
C
Correct answer
Explanation
Assembly consists of set of symbols and letters in which instructions are given to the computer.
-
Compiler
-
Linker
-
Interpreter
-
Loader
-
None of these
C
Correct answer
Explanation
It is a program which reads a source program and translates the source program instruction by instruction.
-
target
-
source
-
block
-
none of these
B
Correct answer
Explanation
Source code is the original programming code written by developers in a programming language (like C++, Java, Python) before it is compiled into machine-readable executable code. Source code is human-readable and contains the logic and instructions that define the software's behavior. Target code refers to the compiled or translated output that computers execute.
-
PASCAL
-
COBOL
-
LISP
-
FORTRAN
-
SNOBOL
D
Correct answer
Explanation
FORTRAN was the first programming language.
-
it does not have structures
-
it does not have pointers
-
it has clean code
-
it is object oriented
-
it is a simple language
B
Correct answer
Explanation
Absence of pointers makes a language clean.