answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How many pictures can a 4Gigs flash drive hold?

It will depend on the megapixels...

5 Megapixel Camera = 1595 Pictures

6 Megapixel Camera = 1471 Pictures

7 Megapixel Camera = 1314 Pictures

8 Megapixel Camera = 1164 Pictures

10 Megapixel Camera = 887 Pictures

How do you improve insertion sort algorithm?

If there was a way, it would be the new insertion sort! Theoretically you could reduce the time by using a linked list and searching to the position it needs to be inserted and inserting it. In practice however you would be better off simply using a different sort, especially if you don't want your data in a linked list.

Selection sort is better when writing is expensive. Quicksort and Mergesort are faster on large data sets.

What is the name of the function which must be defined in a Java program?

The main function. Every program must have a main function and it must be declared static.

What are the two parts of compilation?

1) source program to object program

2)object program to object program output

Where is a software for making mmd models in English?

You can use Blender, and then get the PMD plugin to convert between blender and pmd formats. This is useful for bone rigging for PMD, because it's hard to rig bones in PMD editor in comparison to blender. I'm planning on making models this way.

There's also metasequoia, but the free version is quite limited, and I have no idea where to convert it directly to pmd file because you have to convert it .x file to upload into PMD editor and make it .pmd.

Can reverse engg be applied on ActiveX object file and source code of it can be found?

No. You cannot retrieve the original source code through reverse engineering. At best you can disassemble the machine code. The resultant code is not unlike assembly language, however there are no comments or identifiers to assist you.

What is code of 1 2 3 4n2 3 4 5n 3 4 5 6n 4 5 6 7 n 5 6 7 8 in c plus plus?

#include <iostream>

int main()

{

int i,j;

for(i=1;i<6;i++) // Change 6 to a higher number to get more lines of output

{

for(j=i;j<i+4;j++) // Change 4 to a higher number to get more numbers in each line

cout<<j;

cout<<"\n";

}

return 0;

}

Can you develop webpages in delphi programming language?

yes, both static and dynamic websites can be developed in delphi, look at intraweb, isapi, cgi, nsapi etc.

regards

Sumalani

What does dll contains?

A . dll is dynamic link used by various applications. Other than write it over and over it is written once and utilized by alot of different applications. dll stands for "dynamic link library "It is put in a special folder and and when the app looks for a dll it looks in this special folder. There may be dozens of dynamic links in this one folder. Its a space saving device

Is natural language a fifth generation programming language?

Yes, natural language is a fifth generation programming language.

How do you write a java program in which the user will enter an amount of money as a decimal number and the program will compute how many pennies nickels dimes quarters ones fives tens twenties etc.?

Denomination values should be stored in an integer array where each value is in pennies. So $100 is 10000 pennies:

const array<int,10> value = {10000, 5000, 2000, 500, 100, 50, 25, 10, 5, 1};

Create a parallel array with the actual denominations:

const array<string,10> denomination = {"hundreds", "fifties", "twenties", "fives", "dollars", "half", "quarters", "dimes", "nickels", "cents"};

Start by multiplying the amount by 100 to determine the actual number of pennies. So $1.23 becomes 123 pennies. Store this value as an integer named pennies.

Now work your way through the denominations in sequence:

for (int index=0; index<value.size() && pennies; ++index)

{

int number=pennies/value[index];

if (number)

cout<<number<<' '<<denomination[index]<<endl;

pennies%=value[index];

}

Multithreaded programming vs multiprocess?

Multitasking is a method for multiple tasks to share a single resource, like a CPU. This is usually accomplished in software via special programming.

Multiprocessing is the use of multiple CPUs in the same computer and the method of splitting tasks between them. This is usually done with hardware on the motherboard.

What are the application of seven segment display?

A: Seven segment display can give digital number visually from a source like a computer that has binary outputs the number 64 in digital would be 100000 and also can display alphanumeric which is what humans can readily see So basically transfer information from a machine language to human language

Why paging is faster than segmentation?

Paging is a technique with the help of which we can divide the memory into pages which help us to easly access the files and it also decreases the Execution time (Saves SYSTEM time). It also creates a mirage of Memory.

What was Intel's first multicore processor?

Intel's first multicore processor was the Xeon, followed the same year (2002) by the Pentium IV. The two cores were implemented in a hyperthreading configuration, allowing two simultaneous threads when both threads were in the same process address space.

Independent cores (in different address spaces) were supported starting with the Core-2 Duo. This configuration extended the hyperthreading model to include duplicating enough of the bus interface unit to allow two unrelated threads to run simultaneously.

What is algorithm evaluation?

evaluation iz same as the testing of an algorithm. it mainly refers to the finding of errors by processing an algorithm..

How can we know that which programming language is used in creation of a particular software?

The easiest way is to simply ask the author.

Looking at interpreted (or partially interpreted) languages makes it easy. Java, for example, will usually require .java, .class, or .jar files to execute.

However, if you simply have an executable file, you are probably out of luck for figuring it out yourself. There is no reliable way of knowing whether that file was compiled from C, assembly, Haskell, or any number of other languages.

What is merging operation in data structure?

Merging is combining the records in two different file into a single file.