Essential Basic Programming Interview Questions Part – 2
Why Don’t We Give A & Before Reading A String In C Language?
scanf(“%s”,str); why is it not scanf(“%s”,&str);
We don’t give an & before reading a string. This is so because a string is a character array. For an array, be it integer or character or any other array, declared as int a[10] or char str[20], the name ‘a’ or ‘str’ stores the base address of the array, that is the address of the memory location where the array is starting.
The scanf statement requires the address of the location to store the value input by the user. Since str already stores the address of the memory location we do not need to add the & before it.
How To Hide A Text In Cognos Reportnet?
yes, we can hide by 2 possible options.
make the box type none to the text.
Use boolean.Explain What Is The Osi Model?
OSI is Open System Interface Model. It is a concept which is used to make data transfer in steps. There are 7 layers and each layer interact with its counterpart. earlier a product made by any abc co was able to communicate with the same company product. to communicate with different co’s products it was created. as it’s name shows “OPEN System Interface”.
Tell Me How Can We Check Out The Files From Cvs?
In GUI mode i.e winCVS, On menubar,there is checkout option.In that u can click and select the module that you want to check out.
In UNIX mode,you have to execute the following comand, >CVS checkout -r
Explain What Are The Differences Between Desktop And Enterprise Application?
Desktop application runs on a single machine. It could be a part of network. But Application and database resides on same machine. And only one user can access it at a time.Enterprise application is generally a multi-tier application. Many a concurrent users can access data and application at a time.
What Is Virtual Memory Under Linux?
Linux supports virtual memory, that is, using a disk as an extension of RAM so that the effective size of usable memory grows correspondingly. The kernel will write the contents of a currently unused block of memory to the hard disk so that the memory can be used for another purpose.
When the original contents are needed again, they are read back into memory. This is all made completely transparent to the user; programs running under Linux only see the larger amount of memory available and don’t notice that parts of them reside on the disk from time to time.
Of course, reading and writing the hard disk is slower (on the order of a thousand times slower) than using real memory, so the programs don’t run as fast. The part of the hard disk that is used as virtual memory is called the swap space.
How To Remove Sections In Report In Reportnet?
To remove a section, do the following:
Steps :
Delete the section header.
From the View menu, click Page Structure.
Expand Page Body until you see the data container in which you added the section. The data container is nested in the List object that is created when you add a section.
Drag the data container to Page Body. The data container appears as a node of Page Body.
Delete the List object. In the Query Explorer, the query that is created when you add a section is also deleted.
From the View menu, click Page Design.
In the Insertable Objects pane, click the Query Items tab.
Drag the query item that was used as a section header back into the data container.
Explain How To Write A Class In C++ Using Only One Object?
class singleten{ static int count; singleten() { if (count==1) { exit(0); } count++; }}singleten::count =0;void main(){singleten s1;singleten s2;}program is terminated as soon as second object is created.
Explain What Is Actually Meant For Buffer? How Does It Work?
Buffer is something that is used to hold the data temporarly.
Ex- If we are watching any thing online,then buffering of data takes place i.e for sometime data get stored in buffer then processed.
A Function Is Running, It Has Its Own Stack Pointer, Memory Area Now It Invokes Another Function From This Point What Changes Will Be In Its Memory Area And What Other Changes In Data Segment, Stack Segment, Heap Segment. I Want A Complete Picture Of Memory Architecture?
There will be a lot of changes in fact. First of all, all the variables the function was suing needs to be pushed into the stack. (we need all these variables when we return from the other function).
The Program counter will be pushed to stack too… (When the “return” of second function occurs we should know where to ‘return’ to)These are the basics which are bound to happen when a function calls another.
Tell Me Can We Execute Any Simple Program Without Installing Any Operating System?
No! we can not run any simple program with out using any interface such as operatin systen or System software. but in some cases like Machine level languge or firmware run without any software because it directlly communicate with hardware and makes the hardware active so other program can run using his platform.
Tell Me How To Execute 13,000 Test Cases In A Faster Way In Manual Testing?
Cannot execute 13,000 FTS faster. First need to analyse the severity and priority of the functionality wise and then the selected test alone have to execute
What Is The Difference Between Review And Walkthrough? On Testing Perspective ,who Will Do Review And Walkthrough? Clarify With An Real Example?
In laymans term walk-through is nothing but running thru the requirements while review is making an analysis of the progress and if the case may be a change has to be recommended
What Is Meant By Inspection And Who Will Lead The Inspection And Roles Involved In Inspection?
Review if more formal than walkthrough .Walkthrough is done with a purpose of gain understanding of system and learning.
Define Raster And Vector Data. Explain What Is The Difference Between Raster And Vector Data?
Raster data is a set of horizontal lines composed of individual pixels, used to form an image on a CRT or other screen.Raster data makes use of matrix of square areas to define where features are located. These squares are typically of uniform size, and their size determines the detail that can be maintained in the dataset.
Raster data represent square areas, they describe interiors rather than boundaries. Vector data use X and Y coordinates to define the locations of points, lines, and areas (polygons) that correspond to map features, vector data tend to define centers and edges of features.They are excellent for capturing and storing spatial details
What Is The Part Of Compiler That Keeps Track Of Names And Their Attributes?
symbol table
Planning To Start A Career As A Manual Tester ,is Taking A Course Compulsory Or Can I Get The Subject By Referring Through Information On Internet?,does Manual Testers Use Any Tools In Real Time
Not necessary that you have to take any course provided if you are not fresher. Suppose if you are working in any company as design engineer, then as you have the domain knowledge working as end user. Then you can definitely use this knowledge to test the software and find bugs.
And regarding processes and tools used every company has different strategy which can be managed or learn once you get into that company.