answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What reads a code statement converts it to one or more machine language instructions and then executes those machines language instructions?

A load and go compiler. These were popular on medium sized transistorized computers in the early 1960s but have become obsolete. Two examples were the 60+ pass FORTRAN II compiler for the IBM 1401 w/ 8000 or more characters of memory and GOTRAN (a FORTRAN subset) on the IBM 1620 and other computers.

Why merge sort is adaptive?

Merge sort is adaptive because it can take advantage of "runs" that are already sorted. We call this algorithm the natural merge sort. Consider the traditional top-down merge sort:

Start : 3421758906

Divide: 34217|58906

Divide: 342|17|589|06

Divide: 34|2|1|7|58|9|0|6

Divide: 3|4|2|1|7|5|8|9|0|6

Merge: 34|12|57|89|06

Merge: 1234|5789|06

Merge 12345789|06

Merge: 0123456789

With natural merge sort, we get the following:

Start : 3421758906 Divide: 34217|58906

Divide: 342|17|589|06

Divide: 34|2|17|589|06

Merge: 234|15789|06

Merge: 12345789|06

Merge: 0123456789

As you can see, there is one less division and one less merge. However, note that the final division only divides one run (342), all the others are "already sorted" and don't need to be divided any further. With fewer (and longer) runs, there are fewer merges to perform.

How do you search fo a particular file in MS-DOS?

Go to the root directory of the drive (eg c:\), then type: dir <filename> /s For example, to search for the file fred.doc, you would type: dir fred.doc /s Adding /s to the dir makes dos search all the subfolders, so starting in the root directory makes dos search the entire disk.

What is Range and Domain?

Range: The range is the set of all possible output values (usually y), which result from using the function formula. Domain: The domain of a function is the set of all possible input values (usually x), which allows the function formula to work.

What do you mean by multiple compilation?

Whenever you change the source, you have to re-compile it, to get a new object/executable.

Can an array of pointers to strings be used to collect strings from the keyboard?

Yes, u can do so. But you need to allocate memory to it. For exampe if you declare it like

char *myarr[4];

It is an uninitlized array of pointers. If you use it direct. You will get error.

You need to allocate memory to it. And then you can use it.

Here is the code

char *ab[4];

for (int j=0; j<3; j++)

ab[j]=(char *) malloc(10);

for (int j=0; j<3; j++)

scanf("%s", ab[j]);

for (int j=0; j<3; j++)

printf("%s\n", ab[j]);

Hope that helps

What is the Difference between coarse grained and fine grained parallelism?

Granularity refers to the ratio of actual computation to the amount of communication required by a parallel system.

A fine-grained system will do a small amount of computation before transferring data/results. A coarse-grained system will do a relatively large amount of computation before reporting back.

What does it mean 'the procedure entry point in GetProcessFlags could not be located in kernel32.dll?

I'm not sure about this, but I'll give you an analogy:

The files for said program are like the parts of a car, and when they are all put together they work to an end, namely the program's function. the Kernel32 file is like the person who built and uses the car. If the kernel32 file doesn't have the information on how to use the provided files to run the program, it would be like trying to drive a car when a)the car is in pieces laid out in front of you and you don't know how to put them together and b)you don't know how to drive worth anything. Try reinstalling the program, it can't hurt, though it may not help.

How do I get color text in a DOS command window?

Open the command window by Start -> Run -> cmd You'll find the application's window sitting on the task bar. Right click on it and you'll find the option Properties. Select it and you'll find all the possible options to change the color of textas well as the background.

How do you work with SAP ALV?

SAP ALV is a SAP UI element which is used to perform various operations e.g. display, edit etc. Please refer the mentioned link above to get more idea about the usage of ALV in your programs.

Write a c program to remove a specified node from a given doubly linked list and insert it at the end of the list?

#include<stdio.h>

#include<stdlib.h>

#define NULL 0

struct info

{

int info;

struct info *next;

struct info *prev;

};

struct info *start,*end;

void main()

{

struct info *ptr;

if(start==NULL)

{

printf("linklist is empty");

}

else

{

ptr=(struct info *)malloc(sizeof(struct info));

ptr=start;

if(start==end)

{

start=NULL;

end=NULL;

}

else

{

start=start->next;

start->prev=NULL;

}

free(ptr);

}

}

Write a program to concate the string without using strconcat function?

If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that

What is single point perspective?

A single point perspective is when you are drawing a picture and you have a dot on your paper. Every line you draw has to be lined up with that dot ...does that help?

What is the programming language used for e-banking?

VB.NET is used for e-banking.It is the language in which all the options are used just by tool box that is at the right hand side of the window.

This question is like asking "what brand of wrench is used to make cars?". There are thousands of different e-banking sites and connections, and they use practically all languages ever designed to run at least one of those possible e-banking places.