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 databases
  1. True

  2. False

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

In SQL databases, NULL specifically represents the absence of any value or an unknown/missing value. It is not the same as zero, empty string, or space - it literally means "no value present" for that field in that row.

Multiple choice technology databases
  1. True

  2. False

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

DECLARE CURSOR is a declarative SQL statement, not an executable statement. It defines the cursor's characteristics and the query it will execute, but doesn't actually perform any action when encountered. You must declare a cursor before you can OPEN, FETCH from, or CLOSE it. The declaration happens at compile/prepare time, not runtime.

Multiple choice technology databases
  1. True

  2. False

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

DECLARE CURSOR is a declarative statement, not an executable SQL statement. It defines the cursor's characteristics (the query and attributes) but does not actually process any data. The OPEN statement executes the cursor declaration by processing the query, and FETCH retrieves the actual rows.

Multiple choice technology programming languages
  1. True

  2. False

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

Unlike C and C++, sizeof is not a keyword in Java because Java does not need to determine the size of data types at compile-time due to its platform-independent virtual machine.

Multiple choice technology programming languages
  1. With OPTION STRICT ON keyword

  2. With OPTION EXPICIT Keyword

  3. With OPTION STRICT OFF keyword

  4. All the above

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

To enable Strict Type Checking in VB.NET, you need to use the "Option Strict On" keyword. This will enforce data type checking for all variables, parameters, and return types in your code.

Option Explicit, on the other hand, enforces explicit declaration of all variables in your code.

Option Strict Off disables strict type checking and allows automatic type conversions, making it easier to write code but potentially less safe.

Therefore, the correct answer is:

The Answer is: A. With OPTION STRICT ON keyword

Multiple choice technology mainframe
  1. Marks the end of a job

  2. Marks the beginning of an instream procedure

  3. Marks the beginning of a job & assigns a name to the job

  4. Assigns an execution priority to a job

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

The JOB statement is the first statement in a JCL stream; it marks the beginning of a job, assigns a unique name to the job, and provides accounting and execution parameters.

Multiple choice technology mainframe
  1. Positional, Keyword

  2. Keyword, Control

  3. Dynamic, Static

  4. Named, Dynamic

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

JCL statements, including the DD statement, utilize two primary types of parameters: positional parameters (which must appear in a specific order) and keyword parameters (which use key=value syntax).