Abstract class vs interface in PHP. What’s the Difference between an abstract class and interface in PHP? It is one the most important oops concept asked in an interview.
In this tutorial, You are going to learn some important differences between an abstract class and interface.
Write a program to print triangle pattern of numbers and stars (*). In this program i’ll show how to create triangle pattern of numbers , stars (*) . These type of questions are very important in terms of interviews as well.
Write a C program to multiply two numbers without using * multiplication operator.
Given two numbers, both numbers are positive. Write a program to multiply two numbers without using * multiplication operator. Think for a moment how to solve this problem .
You can use multiple approaches to find the solution of a problem.
C Program to Multiply Two Numbers without using *
Write a c program to count number of nodes in a linked list. In this tutorial, We are going to write a c code to count the number of nodes in a linked list.
What is Linked List?
A linked list is a collection of nodes, each pointing to next node by means of a pointer. In linked list, each node consists of two parts, a data and a pointer to next node.
C Program to Count Number of Nodes in a Linked List
An Algorithm to Count Number of Nodes in a Linked List
i) Take a count variable and initialize it to zero, count = 0.
ii) Traverse a linked list and increment a count variable.
iii) When a node points to a null, it means we reach at end of a linked list then return the value of a count variable.
Write a program to reverse string without using string function. You don’t have to use any in-built string library function. This problem can be solved by multiple approaches. Let’s check it.
Find Pair of Elements in Array whose Sum is Equal to given number. This is another very tricky/good question generally asked in technical interview. Given array might be sorted or unsorted it depends on the interviewer.
One person has asked me to write a function in PHP to count number of words in a string.
You don’t have to use any inbuilt function in PHP except strlen and strpos.
Write a program to print middle element of a linked list. It is also the most asked question in interviews. I assume you have a basic understanding of linked list and it’s concept.
These C objective questions test your basic understanding of C language and it’s concept. The questions i included is a short piece of c code, every question has four options, you have to choose the correct answer.
MySql is one of the most used open-source database. In this article, i try to cover some of the most asked mysql interview questions.