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 technology mainframe
  1. True

  2. False

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

JCL (Job Control Language) is NOT a programming language - it's a scripting language used to tell the operating system how to run a job. JCL defines job steps, allocates resources (like data sets and CPU time), and specifies what programs to run. Unlike programming languages, it doesn't implement algorithms or data structures - it's a control and job submission language.

Multiple choice technology
  1. Modular programming

  2. Aspect-oriented programming

  3. Object-oriented programming

  4. Reflective programming

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

VB6 was primarily a procedural language with limited OOP support. VB.NET is built entirely on object-oriented programming (classes, inheritance, polymorphism, encapsulation). Understanding OOP is essential for VB.NET development and makes migration easier - you'll recognize which patterns to preserve and which need redesign.

Multiple choice technology
  1. Rosario

  2. Orcas

  3. Yukon

  4. LINQ

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

LINQ (Language Integrated Query) is the unified programming model for querying objects, databases, and XML in .NET. The other options are Microsoft code names: Rosario (future Team System), Orcas (VS 2008), Yukon (SQL Server 2005). Only LINQ is the actual technology name for query integration across data sources.

Multiple choice technology programming languages
  1. ilasm

  2. ildasm

  3. clr

  4. None of the above

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

ilasm (IL Assembler) converts IL (Intermediate Language) code into executable code. ildasm (option B) is the disassembler that converts executable code to IL. The CLR (option C) is the runtime environment that executes IL, not an assembler. ilasm is the correct tool for assembling IL programs.

Multiple choice technology programming languages
  1. Prints 300 as the output

  2. Prints ā€œCā€

  3. Compiler Error

  4. RunTime Error

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

Byte variables in VB.NET have a range of 0-255. When A=200 and B=100 are added, the result is 300, which exceeds the maximum value a Byte can hold. This causes an overflow exception at runtime, not during compilation.

Multiple choice technology mainframe
  1. DATAGEN

  2. JCLGEN

  3. DCLGEN

  4. DBLGEN

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

DCLGEN (Declaration Generator) is an IBM DB2 utility that generates COBOL or PL/I data structure declarations that match DB2 table definitions. It creates host variable declarations compatible with the table's column definitions, ensuring type safety and reducing manual coding errors when working with embedded SQL in COBOL programs.

Multiple choice technology programming languages
  1. SFLSIZ > SFLPAG.

  2. SFLSIZ < SFLPAG.

  3. SFLSIZ = SFLPAG.

  4. SFLSIZ <> SFLPAG.

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

For dynamic subfile expansion, SFLSIZ must be greater than SFLPAG. SFLPAG defines how many records load per page, while SFLSIZ is the total capacity. When SFLSIZ > SFLPAG, the subfile can grow beyond one page as needed. Setting them equal creates a fixed-size subfile.

Multiple choice technology programming languages
  1. ENDPGM

  2. STRPGM

  3. With the help of MONMSG MSGID(CPF0864) we can identify end of file in clp program.

  4. STRDBG

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

In CL programs, end-of-file is detected by monitoring for message ID CPF0864 using the MONMSG command. This message is sent when a read operation reaches the end of a file. ENDPGM ends a program, STRPGM has no meaning, and STRDBG starts debugging.