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. Global

  2. Task

  3. Local

  4. Application

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

Global variables are typically application-specific in the sense that they are scoped to and persist throughout a single application instance, as opposed to system-wide or session-scoped variables. Task, Local, and Application variables represent different scoping levels.

Multiple choice technology architecture
  1. STATIC,EXIT,GLOBAL

  2. GLOBAL,STATIC,DYNAMIC

  3. EXIT,POSTSTORE,COMPLETE

  4. STATIC, TEMPORARY,DYNAMIC

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

Tasks in BTM can have three behavior types: STATIC (compiled/unchanging), TEMPORARY (runtime-created), and DYNAMIC (can change during execution). These categories define how tasks are loaded, managed, and executed within the workflow engine.

Multiple choice technology programming languages
  1. No

  2. Case sensitivity is compiler-determined

  3. Yes

  4. Don't Know

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

C++ is a case-sensitive programming language, meaning that identifiers like Variable and variable are treated as completely different symbols.

Multiple choice technology databases
  1. Character Function

  2. Number Function

  3. String Function

  4. Date Function

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

Standard SQL function categories are Character (UPPER, LOWER, SUBSTR), Number (ROUND, TRUNC, MOD), Date (SYSDATE, ADD_MONTHS, LAST_DAY), and Conversion (TO_CHAR, TO_DATE). There is no separate 'String Function' category - character functions handle string manipulation.

Multiple choice technology programming languages
  1. True

  2. False

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

The finally block is guaranteed to execute after the try and catch blocks, regardless of whether an exception is thrown or successfully caught. This ensures critical resources are always cleaned up even during unhandled exceptions, which makes the statement true.

Multiple choice technology programming languages
  1. True

  2. False

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

Handling an exception is designed to prevent abrupt program termination, allowing the application to recover and continue running or shut down gracefully. Because unhandled exceptions are what cause a program to terminate immediately, the statement that handling an exception allows termination is false.

Multiple choice technology programming languages
  1. Divide by zero error

  2. Accessing the elements of an array beyond its range

  3. Invalid input

  4. Opening an empty file

  5. Hard disk crash

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

Exceptions include: Divide by zero (ArithmeticException), array index out of bounds (ArrayIndexOutOfBoundsException), and invalid input (depending on type, could be NumberFormatException, IllegalArgumentException, etc.). Hard disk crash represents an Error (not Exception) but is still a throwable condition. Opening an empty file is not typically an exception - it's a valid file operation that just returns empty data.