Computer Knowledge

Programming Fundamentals

2,381 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 programming languages
  1. i

  2. iii

  3. a & b

  4. a & c

  5. a,b,c

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

In SAP BusinessObjects, the If() function is used to conditionally format or display rows in a block (i) and to display dynamically grouped values (iii). Scheduled reports (ii) and dynamic lists of values (iv) are managed through query filters and scheduling options rather than the If() function. The option text uses 'a & c' to represent 'i & iii'.

Multiple choice technology mainframe
  1. 1, 3 and 4

  2. 2, 3 and 4

  3. 2, 3 and 6

  4. 1, 3 and 5

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

Calling an external PL/I procedure requires proper declaration and invocation syntax. You must declare the entry with RETURNS keyword if it returns a value, declare the parameter and result variables, and call it with the parameter in parentheses. The correct combination is ENTRY declaration with RETURNS, variable declarations, and function call syntax with parameter.

Multiple choice technology
  1. Simple, String

  2. Consolidated, Boolean

  3. Numeric, String

  4. String, Consolidated

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

Turbo Integrator (TI) processes support two variable types: Numeric (numbers) and String (text). Option C correctly identifies these two types, which are used for data manipulation and processing in TI scripts.

Multiple choice technology databases
  1. A monitor program which dispatch the events to the callback of the one of the member

  2. Monitor object with it's own callback function

  3. A monitor program which dispatch the events to the callback of the member of

  4. None

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

A monitor program should be written as a Monitor object with its own callback function. This allows the monitor to independently track queue status and take action when thresholds are exceeded. The other options describe dispatching mechanisms, not the monitor structure itself.

Multiple choice technology databases
  1. 5s

  2. 25s

  3. 10s

  4. 20s

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

In a single-threaded dispatcher, a timer callback that takes 20 seconds to execute blocks the thread. The next timer event, already due, is dispatched immediately upon completion, so the start of the next callback runs 20 seconds after the first.

Multiple choice technology mainframe
  1. (A) StartIF

  2. (B) Then

  3. (C) Goto

  4. (D) Else.

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

JCL does not support direct branching or control transfer keywords like GOTO. Conditional execution in JCL is handled strictly through the IF-THEN-ELSE-ENDIF construct or the COND parameter. The other options represent valid parts of JCL's conditional processing syntax.