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
  1. Total time of execution will be 10 milli seconds.

  2. The total time of execution will be 10 seconds.

  3. Total time of execution will be 40 seconds.

  4. None of the above

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

This option is correct because the execution time of one loop is 10 seconds and since the loop runs 4 times, hence the total time of program execution will be 40 seconds.

Multiple choice
  1. sequence structure

  2. selection structure

  3. iteration structure

  4. none of these

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

'Switch-Case' statement comes under the selection structure as it allows the user to select appropriate case statement depending upon the choice of the user.

Multiple choice
  1. the hour of the Date object from 1 - 24

  2. the minute of the Date object

  3. the hour of the Date object from 0 - 11

  4. the hour of the Date object from 0 - 23

  5. the hour of the Date object from 1 - 12

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

This is the correct answer.

Multiple choice
  1. Syntax errors

  2. Semantic errors

  3. Logical errors

  4. Internal errors

  5. _

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

It is an error in the syntax of a sequence of characters that is intended to be written in a particular programming language. Syntax errors occur during the parsing of input code and are caused by grammatically incorrect statements.

Multiple choice
  1. similar datatype only

  2. dissimilar datatype only

  3. integer datatype only

  4. string datatype only

  5. all datatypes

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

Structure can use any type of data type within it and the new data type is called structure data type.