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
  1. The procedure AXA_REFRESH_APPL_DEF

  2. The procedure AXA_REFRESH_APPL_DEM

  3. The function AXA_REFRESH_APPL_DEF

  4. The function AXA_REFRESH_APPL_DEM

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

When Application Definition is changed in PPM, it triggers the function AXA_REFRESH_APPL_DEM to refresh application demand records. This is likely a database function that updates dependent demand records to reflect the new definition.

Multiple choice technology
  1. 200

  2. 1000

  3. 4000

  4. None of the above

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

Variable length for storing field values in request types is not fixed to specific values like 200, 1000, or 4000 characters. The appropriate length depends on the field type, database column definition, and specific requirements of the field being stored. Different fields have different maximum length requirements.

Multiple choice technology web technology
  1. the page will shut down.

  2. the page is defined as a target and will be found by the arrow command.

  3. window will open blank.

  4. when clicking a link, it will open in a new window.

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

The target="_blank" attribute in HTML anchor tags tells the browser to open the linked document in a new window or tab. This is commonly used when you want users to view linked content without leaving the current page. It does not shut down pages or open blank windows.

Multiple choice technology mainframe
  1. There is either a JCLLIB statement for the entire JOB, or a separate one for each EXEC

  2. A JCLLIB statement can not have a statement name.

  3. There can only be one JCLLIB statement per JOB.

  4. A JCLLIB statement must be coded before the first EXEC statement.

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

A JCLLIB statement is used to specify private libraries for search. It cannot have a name, must be coded before the first EXEC statement, and only one JCLLIB statement is allowed per job. Distractors suggesting separate ones per EXEC are incorrect.

Multiple choice technology mainframe
  1. The COND parameter always indicates that if its condition is met, the step is NOT executed.

  2. When adding the COND parameter to an EXEC statement that calls a procedure, this COND

  3. With the COND parameter, we can only check return codes.

  4. The COND parameter can check the return codes of multiple steps, but as soon as one of

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

When COND is placed on an EXEC that calls a procedure, it applies to ALL steps in that procedure (B is true). COND can check multiple previous steps' return codes using EVEN/ONLY syntax, and stops at the first true condition (D is true). Option A is false because COND tests whether to SKIP the step. Option C is false because COND can also test abend conditions (abend codes), not just return codes.

Multiple choice technology mainframe
  1. //TU00001T JOB (ATUT000,,,,,,,,),TU00001,CLASS=7,MSGCLASS=X

  2. //TU00001T JOB (ATUT000),’TU00001’,CLASS=7,MSGCLASS=X

  3. //TU00001T JOB TU00001,’(ATUT000)’,CLASS=7,MSGCLASS=X

  4. //TU00001T JOB ,(ATUT000),CLASS=7,MSGCLASS=X

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

Both A and B correctly code the JOB statement with accounting information as the first positional parameter. A uses the full positional parameter format with commas, while B uses the accounting number alone in parentheses. Options C and D are incorrect because they invert the positional parameters (job name and accounting info are swapped).

Multiple choice technology web technology
  1. Reduces parsing overhead

  2. Reduces execution overhead

  3. Forces usage of INDEX

  4. Makes code reusable

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

BIND variables reduce parsing overhead because Oracle can reuse the same parsed statement for different values. They also make code reusable and prevent SQL injection. They don't reduce execution overhead (execution time depends on data volume) and don't force index usage (index choice depends on optimizer and selectivity).

Multiple choice technology programming languages
  1. Nullable<bool> b=null;

  2. bool b=null;

  3. <Nullable> bool b=null;

  4. bool b= <Nullable>;

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

The Nullable struct allows value types to be assigned null, which isn't possible for regular value types. Nullable can hold true, false, or null. Option A uses the correct generic Nullable syntax. Regular bool variables cannot be assigned null directly.

Multiple choice technology programming languages
  1. Data Conversion

  2. Interfacing

  3. Boxing

  4. Casting

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

Casting is the process of converting a value from one data type to another. This can be implicit (safe conversion) or explicit (requiring a cast operator). Boxing specifically refers to converting a value type to a reference type, which is a special case of type conversion. Data conversion is a broader term that includes casting.

Multiple choice technology programming languages
  1. True

  2. False

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

In C#, reference type variables store memory addresses, so multiple variables can reference the same object on the heap. Changing the object through one reference affects all references to that object. This is a fundamental difference from value types, where each variable has its own copy of the data.