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
-
It ensures that all the initializations are complete.
-
It is used to set the properties of controls and establish database connections.
-
Every page control calls this method to output the control's markup.
-
It is used to clean up tasks and close the database connections.
-
None of the above
C
Correct answer
Explanation
This is true about render method in ASP .Net life cycle and after this event, any changes in the controls are ignored.
-
Java
-
C++
-
Perl
-
Simula
-
None of the above
E
Correct answer
Explanation
All are the above are object oriented programming languages.
-
It provides cross language integration.
-
CTS defines the rules that are followed by the different languages.
-
CTS provides an object oriented model to the implementation of the many programming languages.
-
It defines the rules that ensures that the data types of objects written in various languages are able to interact among them.
-
All of the above
E
Correct answer
Explanation
This is the correct choice.
-
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.
-
ASP.Net
-
JavaScript
-
PHP
-
Both (2) and (3)
-
None of the above
B
Correct answer
Explanation
It is a client side programming language.
-
PL-1
-
C++
-
Java
-
Primitive
-
Non-numeric
C
Correct answer
Explanation
This language was originally called 'Oak' which was developed by Sun Microsystems of USA in 1991.
-
Visual C++
-
Javac
-
Visual Basic
-
C#
-
Appletviewer
A
Correct answer
Explanation
This language is used to create tight and fast window applications and device drivers.
-
Data aware control
-
ODBC
-
OLE container control
-
Active X control
-
JDBC driver manager
A
Correct answer
Explanation
In VB, this control can provide access to a specific column or a set of columns in a data source through a data control or through remote data.
-
Scroll Bar
-
Button
-
Checkbox
-
Text Component(s)
-
Choice
D
Correct answer
Explanation
This item events generates text events when the user enters a character.
-
Java supports structures or unions.
-
Java allows the use of default arguments.
-
Java includes preprocessor and support the preprocessor directives.
-
Java supports typedef.
-
Java supports use of applets.
E
Correct answer
Explanation
This is the correct option as java supports the concept of applets.
-
Abstract window toolkit
-
Java applet
-
Java IDL
-
Java beans
-
AlarmPresentation
C
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 COBOL, C++ or others.
-
Parser generator
-
Data-flow engine
-
Automatic code generator
-
Preprocessor
-
Syntax-directed translation engine
D
Correct answer
Explanation
Preprocessor is a cousin of compiler.
-
Global correction
-
System-level recovery
-
Phrase-level recovery
-
Panic mode error recovery
-
Local correction error recovery
C
Correct answer
Explanation
Phrase-level recovery performs local correction on the input to repair the error.
-
code generator
-
scanner
-
semantic analyzer
-
parser
-
intermediate code generator
C
Correct answer
Explanation
Semantic analyzer produces annotated parse tree.