DEV Community

Cover image for 5 Interview questions/tests
Nicat
Nicat

Posted on • Updated on

5 Interview questions/tests

These questions/tests include problem solving, knowledge testing and others. I took these from various sites. Hope you like and if you have any other tests, write them to comments for others to know!

1. What is programming ?

  1. Programming is the process of creating a set of instructions that tell a computer how to perform a task.

  2. Programming is a hands-on technical skill that involves designing, creating, and refining code to solve problems, build applications, and more.

  3. Programming is the process of writing instructions for a computer in the form of code. Developers write the code in a programming language, and it is then translated into a notation the computer can understand so that it can perform some task.

2. Give some exmaples for statements

A statement is a single line of code that performs a specific task.

Answer:

  1. if, elif (else if), else
  2. for
  3. while
  4. switch (not in python)

3. Give some exmaples for operators

An operator is a symbol that usually represents an action or process. These symbols were adapted from mathematics and logic. An operator is capable of manipulating a certain value or operand.

Answer:

  1. +, -, *, /
  2. ==, !=, >, <, >=, <=
  3. && (and), || (or), ! (not)

4. What is an Array?

An array is commonly referred to as a collection of items stored at contiguous memory locations.

5. What is LIFO and FIFO:?

  1. LIFO is an abbreviation for Last In First Out. It is a way of accessing, storing and retrieving data. It extracts the data that was stored last first.

  2. FIFO stands for First In First Out. It is a way of accessing, storing and retrieving data. The data that was stored first is extracted first.

A little tip

In an interview, you often need to talk. Speak every thought in your mind. If you think you have chosen a bad language, the interviewer will not care which language you use. They are looking for your problem solving and programming knowledge.

Top comments (0)