Javascript is off

35 Programming Questions You Should Know The Answer

Author: Aren Proger 09-22-2020

125 views

1. What is programming?

Programming is the process of creating a computer program, which includes designing a program, using algorithms, writing program code, and so on.

2. How does the program code work?

Program code contains instructions, which are executable instructions that are executed by the machine after the code has been converted by the compiler.

3. What is debugging?

Debugging is the process of finding and fixing bugs in a program.

4. What are the types of errors that can occur in the program

Syntax errors.

Runtime errors or runtime errors.

Logical errors.

5. Tell us about syntax errors

A syntax error occurs when there is a typo in the program code or there is an inconsistency with the rules of the language used in the language construct, variable name, function, and so on. The error is detected at the stage of compiling the program.

6. Tell us about the runtime error

Runtime error occurs when a program tries to perform an illegal action, for example, divide by zero. A runtime error can appear at any stage of the program when an incorrect action is taken. If this error occurs, the machine stops the execution of the program and may display a diagnostic message explaining the nature of the error.

7. Tell us about logical mistakes

A logical error is the most difficult to identify, as it may not appear during compilation and during program execution, but it leads to its incorrect execution. A logical error can occur both due to incorrect application of the algorithm, and due to a simple read / write of an incorrect variable.

8. What is a block diagram?

A block diagram is a graphical representation of a program. The block diagram helps to understand the logic of the program or part of it during design.

9. What is an algorithm?

An algorithm is a finite set of steps that, when followed, solve a problem.

10. What do you think it means "to maintain and update the program"?

Program support is the process of regularly updating a program to meet new hardware or software requirements. This is the process of improving and updating the program after installing it.

11. What are variables?

Variables are named memory locations that are used to store program data and the results of its calculations. The value of a variable can change during program execution.

12. What are reserved words in programming?

Reserved or keywords are words and expressions that have predefined meanings and cannot be used when writing code for other purposes, such as naming variables. Examples of common keywords in programming languages ​​are if / then / else constructs or variations on loops. Like for and while.

13. What is a cycle?

A loop is a language construct that can define a section of a program to repeat and how many times it will repeat.

14. Name the different types of cycles

Different languages ​​describe these constructs in different ways, but in most languages ​​you can find constructs like for, while, do ... while. The loop contains an end condition, and by the time this condition is checked, loops can be with a precondition and a postcondition.

15. What is the difference between for and while?

For uses a counter and is useful when performing a predetermined number of iterations.

While will execute the action until the specified condition is false. This is useful when you need to use a loop with an indefinite number of iterations.

16. What is a nested loop?

A loop that runs in the body of another loop is nested.

17. What is documentation?

Documentation is a detailed description of the algorithms and parts of the program, the design process, testing, and patterns of correct use. Documentation can be intended for both the user of the program and the developer.

18. What does the compiler do?

The compiler "reads" the code written in a specific programming language and converts the described commands and language constructs into executable machine code.

19. What is binary code?

Binary code is a binary representation of the code of a particular programming language.

20. What is a constant?

Constant is a constant, named value that cannot be changed. Constants can be numeric or string.

Numeric constants can contain integers, single and double precision numbers.

String constants can contain a sequence of letters and numbers, enclosed in quotes.

21. What are operators?

Operators are special characters that are used in program code to perform certain operations on data. Operators can be arithmetic, logical, relational, and assignment.

22. What is an array?

An array is a collection of contiguous areas of memory that store data of a specific type.

23. What is a subroutine?

A subroutine is a self-contained set of instructions that can be used from anywhere in the program. The subroutine performs its specific task and then returns control to the main program that called the subroutine.

24. When are arithmetic operators used?

Arithmetic operators are used to perform arithmetic operations on values.

25. Relational operators

Relational operators are used in programming to compare values. Evaluating using relational operators will evaluate to true or false.

26. What are logical operators for?

Logical operators combine simple conditions to construct more complex ones (by condition we mean an expression evaluating truth).

27. What are the assignment operators for?

The assignment operator is used to store values ​​in a variable.

28. What does "low-level programming language" mean?

A low-level programming language is a language close to that used when programming directly in machine codes of a real or virtual processor.

29. High-level programming language

The difference between high-level languages ​​and low-level languages ​​is the presence of abstractions, that is, the introduction of semantic structures that briefly describe such data structures and operations on them, the descriptions of which in machine code are very long and difficult to understand.

30. What is machine code?

Machine code is a programming language that can be processed directly by the processor, without the need for pre-compilation.

31. Explain the term "software reliability"

Reliability is the guaranteed correct operation of the program for a certain period of time.

32. What is software testing?

Software testing is the process of verifying that software meets the required quality of work, as well as testing the user experience that the program provides.

33. What is beta?

A beta version of a program is a version that can be modified and changed after receiving feedback from users. Beta version is a working version of the program that is not ready for the final launch.

34. What does it mean to “analyze the program”?

Program analysis is the process of solving a program problem by breaking down a large problem into subtasks. Each sub-problem or “sub-problem” will be solved separately, which ultimately leads to a simpler solution to a global problem.

35. How does the algorithm work?

Every algorithm in programming implements at least three steps:

Receiving data.

Performing calculations.

Outputting the result.