Computer Knowledge

Programming Fundamentals

2,611 Questions

Programming fundamentals form the core logic of software development and computer science. This includes variable declarations, pointer assignments, loop iterations, and exception handling. These technical topics are regularly tested in computer knowledge and IT officer competitive examinations.

Variables and arraysPointer assignmentsLoop iterationsException handling blocksCompile time errorsFunction references

Programming Fundamentals Questions

Multiple choice technology architecture
  1. depends

  2. include

  3. pre-target

  4. none of the above

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

In Ant build tool, the 'depends' attribute of a target specifies which other targets must execute before the current target. These dependent targets are referred to as pre-targets and are executed in the order they are listed in the depends attribute.

Multiple choice technology programming languages
  1. A new type of Applet

  2. A segment of code to be run a specified amount of times

  3. A segment of code to be run infinite times

  4. A segment of code to be run once

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

A loop is a programming construct that repeats a block of code multiple times based on a condition or counter. It allows efficient execution of repetitive tasks without writing the same code repeatedly. Option A is incorrect as loops are not applets. Option C describes infinite loops which are a special case not the general definition.

Multiple choice technology
  1. name=

  2. name=''

  3. name=""

  4. all of the above

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

All three methods set a variable to null/empty: name= (no value), name='' (empty single quotes), name="" (empty double quotes). In shell scripting, these all result in an empty string value, effectively NULL.

Multiple choice technology architecture
  1. True

  2. False

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

The jRules syntax shown is valid. A ruleset can contain a flowtask with a switch statement that includes case blocks and a default block. The structure follows proper jRules syntax with ruleset declaration, flowtask definition, and body containing the switch-case construct.

Multiple choice technology architecture
  1. INPUT

  2. OUTPUT

  3. FAULT

  4. None of the above

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

In WSDL, the FAULT operation element captures errors that occur during web service execution. Each operation can have INPUT (request), OUTPUT (response), and FAULT (error) message definitions. Faults provide a standardized way to communicate error information back to the client.

Multiple choice technology architecture
  1. True

  2. False

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

JavaScript does allow inner (nested) functions - functions can be defined inside other functions. This is a fundamental feature that enables closures, where inner functions retain access to variables in their outer function's scope even after the outer function returns.

Multiple choice technology architecture
  1. True

  2. False

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

JavaScript functions absolutely can return values using the return statement. This is a fundamental feature - functions can compute and return results, return objects, return other functions (closures), or return undefined implicitly if no return statement is reached.

Multiple choice technology testing
  1. Free

  2. Release

  3. DisAssociate

  4. Nothing

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

In VBScript, object variables are references to actual objects in memory. To dissociate an object variable and release memory, you set the variable to 'Nothing' using the 'Set' keyword. This is different from other languages that use explicit 'Release' or 'Free' commands. The 'Nothing' keyword represents the absence of an object reference.

Multiple choice technology
  1. Testing Plan

  2. Error handler

  3. IPO Cycle

  4. Input-Output Specification

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

The Testing Plan is the component of a problem statement that provides specific test cases with sample inputs and expected outputs. This validates whether the implemented program works correctly. Error handlers are code modules, IPO Cycle is a concept, and Input-Output Specification is similar but Testing Plan is the standard term.

Multiple choice technology web technology
  1. True

  2. False

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

Strings in Java are immutable - once created, their values cannot change. Methods like concat(), substring(), or toUpperCase() return new String objects rather than modifying the original. This design enables string interning and thread safety.

Multiple choice technology packaged enterprise solutions
  1. True

  2. False

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

An Assignment in PEGA is precisely defined as a task that requires user input and interaction. When created, an assignment can be routed to either an individual user's worklist or to a workbasket (shared queue). This is a fundamental concept in PEGA's work object processing and workflow management.