Top 100+ Persistent Systems Technical Interview Questions And Answers
Question 1. What Are The Different Types Of Control Structures In Programming?
There are 3 most important manipulate structures in programming:
Sequence, Selection and Repetition.
Sequential control follows a top to backside flow in executing a software, such that step 1 is first perform, observed by means of step 2, all the way till the closing step is finished.
Selection offers with conditional statements, which mean codes, are carried out depending at the assessment of conditions as being TRUE or FALSE. This additionally method that now not all codes may be carried out, and there are alternative flows within.
Repetitions are also known as loop structures, and will repeat one or software statements set by a counter.
Question 2. What Is is also called the OR operator in C programming. When the usage of to assess logical conditions, any circumstance that evaluates to TRUE will render the complete circumstance declaration as TRUE.
Computer Technical Support Interview Questions
Question three. Can The “if” Function Be Used In Comparing Strings?
No. “If” command can handiest be used to compare numerical values and single man or woman values. For comparing string values, there may be another characteristic referred to as strcmp that offers specially with strings.
Question four. What Are Preprocessor Directives?
Preprocessor directives are placed at the start of each C application. This is wherein library files are exact, which might rely on what functions are to be used within the application. Another use of preprocessor directives is the statement of constants. Preprocessor directives begin with the # symbol.
Question five. What Will Be The Outcome Of The Following Conditional Statement If The Value Of Variable S Is 10?
s >=10 && s < 25 && s!=12
The outcome will be TRUE. Since the value of s is 10, s >= 10 evaluates to TRUE because s is not greater than 10 but continues to be same to ten. S< 25 is also TRUE when you consider that 10 is much less than 25. Just the equal, s! =12, because of this s isn't same to 12, evaluates to TRUE. The && is the AND operator, and follows the rule that if all character conditions are TRUE, the whole assertion is TRUE.
TCS Technical Interview Questions
Question 6. Describe The Order Of Precedence With Regards To Operators In C?
Order of precedence determines which operation have to first take region in an operation announcement or conditional statement. On the pinnacle maximum level of precedence are the unary operators! +, – and &. It is observed with the aid of the normal mathematical operators (*, / and modulus % first, observed via + and -). Next in line are the relational operators <, <=, >= and >. This is then accompanied with the aid of the twonext evaluated. On the remaining degree is the assignment operator =.
Question 7. What Is Wrong With This Statement? My Name = “robin”;
You cannot use the = signal to assign values to a string variable. Instead, use the strcpy characteristic. The correct statement might be: strcpy (my Name, “Robin”);
Wipro Technical Interview Questions
Question eight. How Do You Determine The Length Of A String Value That Was Stored In A Variable?
To get the length of a string value, use the feature strlen (). For instance, when you have a variable named Full Name, you could get the period of the stored string fee by means of using this declaration: I = strlen (Full Name); the variable I will now have the character length of the string value.
Question nine. Is It Possible To Initialize A Variable At The Time It Was Declared?
Yes, you don’t must write a separate task announcement after the variable statement, until you propose to change it later on. For example: char planet  = “Earth”; does two things: it declared a string variable named planet, after which initialize it with the value “Earth”.
Infosys Technical Interview Questions
Question 10. Why Is C Language Being Considered A Middle Level Language?
This is because C language is wealthy in features that make it behave like a excessive stage language even as at the equal time can engage with hardware using low stage strategies. The use of a well dependent method to programming, coupled with English-like phrases used in features, makes it act as a high degree language. On the other hand, C can immediately access reminiscence systems much like meeting language workouts.
Question eleven. What Is The Different File Extensions Involved When Programming In C?
Source codes in C are stored with .C record extension. Header files or library documents have the .H document extension. Every time a application source code is efficaciously compiled, it creates an .OBJ item report, and an executable .EXE report.
Aricent Technologies Technical Interview Questions
Question 12. What Are Reserved Words?
Reserved phrases are words that are a part of the same old C language library. This method that reserved phrases have special which means and therefore can not be used for functions apart from what it's miles firstly intended for. Examples of reserved phrases are int, void, and return.
Computer Technical Support Interview Questions
Question thirteen. What Are Linked List?
A connected list consists of nodes which might be related with every other. In C programming, connected lists are created using tips. Using related lists is one green way of utilising reminiscence for storage.
Question 14. What Is Fifo?
In C programming, there may be a data shape known as queue. In this shape, information is stored and accessed using FIFO format, or First-In-First-Out. A queue represents a line in which the primary facts that changed into stored can be the primary one this is accessible as nicely.