Computer Knowledge
Programming Languages and Compilers
1,170 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
-
pre-processor named standard input-output
-
user defined data type named Standard input-output
-
header file named Standard input-output
-
header file named Studio input-output
-
header file named Standard integer output
C
Correct answer
Explanation
It is a header file, which controls input and output.
A
Correct answer
Explanation
ASMX files (ASP.NET web services) can contain code written in any .NET-compatible language, and different languages can even be mixed within the same ASMX file. This is because all .NET languages compile to the same Intermediate Language (IL).
-
Both procedural and OOP are supported in Java.
-
Java supports only procedural approach towards programming.
-
Java supports only OOP approach.
-
None of the above.
A
Correct answer
Explanation
Java is a hybrid language that supports both procedural and object-oriented programming paradigms. While primarily designed as an OOP language with classes, objects, inheritance, and polymorphism, Java also supports procedural programming through static methods and primitive types. You can write procedural-style code in Java, especially in the main method or utility classes.
-
Java beans
-
Java applet
-
Visibroker for java
-
Java IDL
-
Stock
D
Correct answer
Explanation
Java IDL enables objects to interact regardless of whether they are written in the java programming language or another language such as C, C++ etc.
-
C
-
Cobol
-
Java
-
Basic
-
Fortran
C
Correct answer
Explanation
Java is an object oriented programming language.
-
Java
-
Cobol
-
Basic
-
DOS
-
Fortran
D
Correct answer
Explanation
DOS (Disk operating system), is an operating system originally developed for IBM personal computers.
-
web page
-
spreadsheet
-
database
-
program
-
presentation
D
Correct answer
Explanation
C is a high-level programming language used to create programs.
C
Correct answer
Explanation
Java is a high-level programming language originally developed by Sun Microsystems and released in 1995.
-
-WS-VARIABLE-1
-
WS-VARIABLE-FOR-THE-COBOL-PROGRAM
-
WS-VARIABLE-1*-21
-
09-01-21-45
-
WS-VARIABLE-2
E
Correct answer
Explanation
It meets all the criteria for a COBOL word.
-
assembly language
-
high-level language
-
low-level language
-
binary language
D
Correct answer
Explanation
The only language understood by a digital computer isĀ binary language.
-
Java
-
HTML<!--?xml:namespace prefix = o /--><o:p></o:p>
-
C++<!--?xml:namespace prefix = o /--><o:p></o:p>
-
C<!--?xml:namespace prefix = o /--><o:p></o:p>
B
Correct answer
Explanation
Hypertext Mark-up Language (HTML) is understood by web browser.
-
It translates source code into activities (which may comprise groups of machine instructions) and immediately thereafter executes those activities.
-
It translates source code directly into assembly language or machine instructions. The eventual end product is a file or files containing machine code.
-
It combines a list of object modules into an executable program that can be loaded and run by the operating system.
-
It only enables the programmer to edit the program files.
B
Correct answer
Explanation
This job is performed by compiler.
-
Java
-
C++
-
Perl
-
Simula
-
None of the above
E
Correct answer
Explanation
All are the above are object oriented programming languages.
-
C# is an object oriented language.
-
C# supports preprocessor directives.
-
C# supports operator overloading.
-
C# supports exception handling.
-
None of these
E
Correct answer
Explanation
All the statements are true.
-
It determines that the java is error free language as it is strictly typed.
-
It determines the multithreading support.
-
It determines that java bytecode can run on any platform.
-
It determines that java is widely distributed over internet.
-
None of the above
A
Correct answer
Explanation
Yes, it is the feature of java robustness.