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.
Abstract class vs interfaces this is the most asked interview question. Interviewer generally want to know what is abstract class and interfaces. How well you understand the difference between abstract class and interface.
Write a 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.
Write a method or program to count the number of nodes in a linked list.
How 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 point to null then return the count.
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 count number of words in a string without using any function. This type of question generally asked by the interviewer to check the logic of a candidate.
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.