Simply because, GUIs can be of any level of complexity. Elements such as buttons, links, etc all need to properly reference to different objects. If you click here, go there, if you click down there, go here, etc. It is like a very big, complex web. You can imagine that procedural code would make it very difficult to do anything that can grant the user the ability to press whatever they want whenever they want. That's why object oriented code is much more preferable.
What is lex in system software and assembly language programming subject in M.C.A?
M.C.A could be almost anything, maybe a name of a school or school department?
Lex (short for Lexical Analyzer)`is a specialized programming language that takes a set of specifications for how to scan text and find specific items in the text and generates C language source code that is compiled with other code to actually perform the work. The code generated can be used as part of a compilers lexical scan, scanning for specific words and symbols.
C program to find largest digit in a number?
#include
#include
void main()
{
int a,b;
clrscr();
printf("Enter 2 numbers:");
scanf("%d %d",&a,&b);
if(a>b)
printf("%d is greater than %d",a,b);
else
printf("%d is greater than %d",b,a);
getch();
}
What is difference between the arrow and the dot operator in c structures?
The arrow is used when a pointer variable is used to get at a member of a structure, and the dot operator is used when dealing with the real structure.
ptr->fld == (*ptr).fld
str.fld == (&str)->fld
To find the second highest number from a set of numbers?
Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.
Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.
Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.
Find the highest number, eliminate it from the list, find the highest number of the remaining numbers.
Programmers must be careful not to make syntax errors when writing pseudocode programs?
By their very nature, pseudo code programs are not compilable and do not conform to the exact syntax of the computer language used. Since they are not compiled there is no issue with syntax errors.
When translating from pseudo code to the target computer language is when one must be careful of the syntax, but not when writing pseudo code.
Is Variable declaration in event handlers begin with keyboard declar?
No. There is no such keyword as declar in Java.
What is dos interrupt and bios interrupt?
There are more than one of them, the most important DOS interrupt is 21H. Consult the related link.
Source code of text editor with compiler?
Check out open source sites, such as FreshMeat or SourceForge, or the GNU project.
Programming language suitable for commercial applications is?
Any computer language may be suitable for commercial applications if the language is a good fit for the problem it is to solve.
Ultimately, however, it doesn't matter to the end user because they usually don't see or care what the actual programming language was.
What is a fast-transpose algorithm for sparse matrices?
A fast-transpose is a computer algorithm that quickly transposes a sparse matrix using a relatively small amount of memory. Using arrays normally to record a sparse matrix uses up a lot of memory since many of the matrix's values are zero. In addition, using the normal transpose algorithm to transpose this matrix will take O(cols*elements) amount of time. The fast-transpose algorithm only uses a little memory to record the matrix and takes only O(cols+elements) amount of time, which is efficient considering the number of elements equals cols*rows.
How do you get out of dos mode?
You have to just write there exit keyword.And if you have maxize screen of dos then u have to press alt+enter. Pooja
What is binomial array in antenna?
Binomial array is an array in which the amplitudes of the antenna elements in the array are arranged according to the coefficients of the binomial series...
The need for a binomial array is
i) In uniform linear array as the array length is increased to increase the directivity, the secondary lobes also occurs.
ii) For certain applications, it is highly desirable that secondary lobes should be eliminated completely or reduced to minimum desirable level compared to main lobes.
Suman Kalyan...
What is an example of Descending Order?
10
9
8
7
6
5
4
3
2
1
zebra
Yankee
xray
whiskey
Victor
Utah
tango
Romeo
Swap the value of two variables using call by reference?
swap (int *a, int *b) {
*a ^= *b;
*b ^= *a;
*a ^= *b;
}
int c = 13;
int d = 27;
swap (&c, &d); /*c is now 27 and d is now 13 */
Note: there is no call-by-reference in C. In C++:
void swap (int &a, int &b)
{
. int tmp;
. tmp = a;
. a = b;
. b = tmp;
}
Char force is a term Marine Security Guards use for the cleaning people that need to be escorted in classified workspaces in embassies.
== ==
// Returns number of 7s in num.
int numSevens(int num) {
int _num = num;
int numSevens = 0;
while( _num > 0 ) {
if( (_num % 10) == 7 ) {
++numSevens;
}
_num /= 10;
}
return numSevens;
}
How do you convert polynomials into binary form?
All you have to do is think of each x in the polynomial as a power of 10.
Therefore x is actually 10
x^2 = 100
x^3 = 1000
and so on....
So here is an example.
Polynomial given: x^8 + x^6 + x^3 + x + 1
In binary form it would be - 101001011
So for each x^(of whatever) if it exists then put a one in that location if not it is zero. At least this is the easy way I think about doing it.
What is the language continuum?
language continuum is the movement of language and one's ability to understand it as they were to move through an area geographically.
in theory following the language continuum one would be able to understand the languages spoken throughout it if they only knew one of the related languages and move through it slow enough.
example: if you were to start at the southern tip of Italy, and move slowly north you'd understand the Italian spoken as you moved. now when you arrived in the north, if you slowly moved west, you'd understand what was spoken there. arriving in Spain you'd understand the spanish spoken to an extent, moreso as you traveled through Spain, and slowly you'd understand all the varieties spoken there, arriving near the border of Portugal and Spain. you'd slowly understand portuguese as you moved through the country until you stopped. you could head north and arrive in northern Spain's galicia, you would understand galician then return to spanish, etc. this is just a romance language example. i'd cite a text but i can't find it.
ds
Which level provides an abstract view of data and the operations that manipulate them?
implementation level
What are the application of this pointer can you use this pointer in friend function justify?
The this pointer can only be used within nonstatic member functions. Friend functions are not members so they have no access to a this pointer. However, you can pass a specific instance of a class to a function via a class reference argument.
To understand how friendship works, first understand that a nonstatic member function has the following properties:
1. It has private access to the class.
2. It is scoped to the class.
3. It must be invoked upon an object of the class (has a this pointer).
Static member functions have the first two properties while friend functions only have the first property.
How can arrays be used for inter function communication?
The size of a function can be determined from the size of the array. Arrays and functions are both used in computer programming.
Convert 160 from decimal to binary?
160 converted to binary
Start with highest number
128 goes into 160 (160 - 128 = 32)
64 does not go into 32
32 goes into 32 (32 - 32 = 0)
rest of numbers are zeros.
128 64 32 16 8 4 2 1
1 0 1 0 0 0 0 0
Binary number is 1010000