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 c program to print triangle pattern of numbers and stars (*). In this tutorial, we are going to write a c code to print triangle pattern of numbers , stars (*) .
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 c program to reverse a string without using strrev function. Given an input string, we have to write a method to reverse a string. In c, you can simply reverse a string using an inbuilt strrev() function. But we don’t have to use this method.
Think how do you solve this problem. In this tutorial, we write a c code to reverse a string using stack, pointers, recursion, loop.
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.
How to select null values in MySql. Misunderstanding NULL is a common mistake beginners do while writing a MySql query. While writing a query in MySql most of them compare column name with NULL. In MySql NULL is nothing or in simple word it is an Unknown Value so if you use comparison operator for NULL values you’ll get an empty result.
In this tutorial, We are going to learn how to write a query to select NULL values in MySql.