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 web-design
  1. It is a programming language

  2. It has full access to the Windows operating system

  3. It is a set of rules for how applications should share information

  4. It is riskier than Java applets in terms of security

  5. Either BCD

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

ActiveX is a framework for defining reusable software components. Unlike Java's sandbox, ActiveX controls have full access to the Windows OS, making them significantly riskier. The option 'Either BCD' correctly groups these defining characteristics of the technology.

Multiple choice web-design
  1. The use of SCRIPT tags in line with the HEAD and BODY tags.

  2. The addition of the INLINE tag within the controlling HTML.

  3. The embedding of scripting instructions within certain HTML tags.

  4. The physical justification of the script (major routines on the left, and lesser routines indented and on the right).

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

Inline scripting refers to placing script code directly within HTML event attributes (like onclick or onmouseover) inside the tags themselves. This differs from internal scripting (using SCRIPT tags in the head/body) or external scripting (linking to a .js file).

Multiple choice web-design
  1. CODE

  2. ALIGN

  3. ALT

  4. CODEBASE

  5. All of the above

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

The APPLET tag (now deprecated) supported various attributes: CODE specifies the class file, CODEBASE specifies the base URL, ALIGN controls positioning, and ALT provides alternative text. Since all listed options were valid attributes for the tag, 'All of the above' is correct.

Multiple choice xml
  1. True

  2. False

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

The statement is false. DOM Level 2 DOES provide mechanisms for working with namespaces - it introduced namespace-aware methods like getElementsByTagNameNS(), getAttributeNS(), and has attributes like namespaceURI, prefix, and localName on nodes. These allow DOM code to interrogate and modify namespace information in XML documents.

Multiple choice xml
  1. DOMString, UTF-8

  2. DOMString, Unicode

  3. UNICODEString, Unicode

  4. String, Unicode

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

The Document Object Model (DOM) defines the 'DOMString' type for handling text. According to the W3C specification, these strings are sequences of 16-bit units using the Unicode encoding scheme, allowing for international character support.

Multiple choice xml
  1. DOM

  2. SAX

  3. CSS

  4. XSL

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

DOM (Document Object Model) loads the entire XML document into memory as a tree structure, allowing bidirectional navigation, search, and modification of elements. This makes it ideal for scenarios requiring user interaction like searching and editing. SAX is event-based, read-only, and processes the document sequentially without preserving the document structure in memory, making it unsuitable for editing operations.

Multiple choice java core java
  1. 1.Robust

  2. 2.Procedural

  3. 3.Distributed

  4. 4.Multithreaded

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

Java is an Object-Oriented language, not a procedural one. Its core characteristics include being Robust (strong memory management), Distributed (RMI/EJB), and Multithreaded (built-in support for concurrent execution). Procedural programming focuses on functions and sequences, which contrasts with Java's class-based structure.

Multiple choice jcl
  1. JCL is not procedural language

  2. Abbreviation: Job Control Language

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

JCL stands for Job Control Language. It is used on mainframe systems to instruct the system on how to run a batch job. It is considered a scripting or control language rather than a procedural programming language like COBOL or C. Both provided options are technically correct descriptions.

Multiple choice qn3
  1. Common Language Runtime

  2. Command Line Runtime

  3. Custom Language Runtime

  4. None

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

CLR stands for Common Language Runtime, which is the execution engine of .NET that manages code execution, memory management, and other services. It is not related to command line or custom language runtimes.

Multiple choice qn10
  1. Insert

  2. Delete

  3. Update

  4. Select

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

To solve this question, the user needs to know about the differences between various SQL commands and their effects on the database.

The ExecuteNonQuery method is used to execute SQL commands that do not return any data. Instead, it is used to execute commands that modify the data in the database.

Now, let's go through each option and explain whether or not it suits the ExecuteNonQuery method:

A. Insert: This option is correct. The Insert command is used to insert new data into a table, which changes the data in the database. Therefore, ExecuteNonQuery is suitable for executing Insert commands.

B. Delete: This option is correct. The Delete command is used to delete data from a table, which changes the data in the database. Therefore, ExecuteNonQuery is suitable for executing Delete commands.

C. Update: This option is correct. The Update command is used to modify existing data in a table, which changes the data in the database. Therefore, ExecuteNonQuery is suitable for executing Update commands.

D. Select: This option is incorrect. The Select command is used to retrieve data from a table and return it to the user. It does not modify the data in the table, so ExecuteNonQuery is not suitable for executing Select commands.

Therefore, the answer is: D.

Multiple choice perl
  1. Procedural

  2. OOPs

  3. Both

  4. None

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

Perl is a versatile programming language that supports both procedural programming (scripts with subroutines and control flow) and object-oriented programming (creating objects, classes, and using inheritance). While Perl was originally procedural, Perl 5 introduced full OOP support with packages, bless operator, and method invocation. The 'Both' option correctly captures Perl's dual nature.

Multiple choice general knowledge science & technology
  1. Php Extension Repository language

  2. Pharmacy Education Related Language

  3. Practical Extraction and Report Language

  4. Pretty Excellent Synchronization

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

PERL is officially known as Practical Extraction and Report Language. It was designed by Larry Wall for text processing and report generation, though some later retroactively expanded it to Pathologically Eclectic Rubbish Lister as a humorous backronym.