answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

How would you figure out the diameter if you had the circumference?

The formula for the circumference (C) of a circle is C = 2πr or C = πD, where r is the radius and D is the diameter.

If you know the circumference then C/π = D

So just divide the circumference by pi to get the diameter.

What is a structure member?

methods and variables inside the structure is callled structure member

What is an instance in vbnet?

An instance in VBNet is the same as an instance in any other language; it is the realisation of a type. In object-oriented languages, like VBNet, we say that an object is an instance of a class, where the class defines the object's type.

Can you overload object pointers?

Overloading refers to defining multiple functions of the same name with different numbers/types of parameters. So no, you cannot overload a pointer.

What is difference between vector and tensor?

Tensors are simply arrays of numbers, or functions, that transform according to certain rules under a change of coordinates. Scalars and vectors are tensors of order 0 and 1 respectively. So a vector is a type of tensor. An example of a tensor of order 2 is an inertia matrix. And just for fun, the Riemann curvature tensor is a tensor of order 4.

What is true program for DLL files?

C++ editor and a dll compiler, but I wouyld go with codeblocks because it has a built in dll compiler with the dll tags

hope it helps :)

Why you use printf in c programs not only print?

That is short for "print formatted"; it lets you include format codes to control the output.

Who invented the first ringtones programming language?

SYNC PROGRAMMING LANGUAGE

SYNC is the world's very first Ringtones & Ringbacks programming language that was used to instruct the microprocessor in the cell phone to play particular notes from an infinite number of ringtones at what speed and in what order for an incoming call (ringtone) or the sound the actual caller can hear (ringback). With capabilities of variable and EQ adjustments, SYNCallowed cell phones users to create and their own ringtones and ringbacks, whether monophonic, polyphonic, DJ style or a minimalist repetitive loops, for over-the-air delivery. The SYNC created audio files, usually between ten and thirty seconds in length, is a ringtone or ringback computer program stored on the memory chip of the cell phone whose primary function is to instruct the microprocessor what the cell phone speaker should do. SYNC was invented by prolific inventor Andre Gray, who used his creation to also invent ringtones and ringbacks and gave them their precise names and uploaded them to his single-webpage on February 5, 1994.

What is noun verb analysis in object oriented analysis and design?

Noun-verb analysis is a means of identifying classes and their methods. If you look in the "problem statement" (a statement that explains what a software application should do) for nouns, they will often wind up as classes. If you look for verbs, they will be methods of those classes.

A simple example of a problem statement might be:

We are a training facility. We need to be able to track the classes that students take. Classes are taught by teachers. Students enroll in classes. Each class is assigned to one teacher and one classroom.

So, we have classes, students, teachers and classrooms. Class will have methods like AssignTeacher and AssignClassroom. Students will have Enroll. Of course, there is more, such as how to handle the time of each class, and so on. But this gives an idea.

A type of triangle with no equal sides?

There are three types of triangles. Scalene triangles have no congruent sides or angles, equilateral triangles have 3 congruent sides and 3 60degree angles, and isosceles triangles have two congruent sides and two congruent angles.

What are the advantages of pseudocode?

Pseudo-code allows for an intermediate step between a human language description of an algorithm and a programming language description of the algorithm. It is often a good way for non-programmers to understand the programming process.

Explain why an amplified analog signal will have deteriorated compared with the original signal?

An amplified signal is just a signal with added sound, if you compare it to an analogue CD, as it is copied, more and more unwanted sound is added (interference). So if you use that comparison when talking about radio amplification, more and more sound is added from interfering frequencies & sound, this gradually weakens the signal, so the end result will be a poorer signal that is harder to read (Worse than the original signal, and possibly muffled).

E.Akbay

If the variables in a union use the same address so the previous value will be lost if a new value is entered how do you get the previous value?

Answer

quite a low level view required ......everything stored in memmory is in form of bits (i.e. a sequence of 01). It dependes upon how you are going to read a value. Same sequence of bits can give you different values..try printing x=10; printf("%c %d",x,x);


AnswerThis is the same problem as getting the previous value of a regular variable. For example:
int x = 5;
x = 2;

How do you get the previous value of x (5)? If you didn't store the value in another variable before overwriting it with 2, then you can't. The old value is overwritten and cannot be recovered. In a union, it's possible that you might overwrite only part of a previous value if you store a value to a smaller data type. For example:
union { long a; short b; } c;
c.a = 5;
c.b = 2;

It's possible that you can recover some of the old data of c.a, but for most practical purposes that value would be garbage (and it really depends on the exact alignment of the variables and byte endianness).

What competition do you see if you take up this job?

There are many different competitions you may see if you take a particular job. Someone may compete with you to keep your job for example.

What is a good program to make animations - Adobe Freehand or Adobe Photoshop?

Well, between the two of those, I would go with Freehand, just for the graphics.

For animating, you would want to use a vector-based drawing program for at least all of the moving parts. That is, if you are animating in 2D rather than 3D. You could use Photo shop for your background (the scene) if there are no moving parts (animations) in the background, and you would rather try to make the scenery appear more realistic. However, using a vector-based program for the background is also a better idea. Suppose you have a ringing phone, shaking in the scene - it would be easier, and better, to do this along with the rest of the background in vector rather than raster. Photo shop is raster. Raster is difficult to animate at a good quality.

Above either of these programs, I would recommend Adobe Flash for animating. Adobe Flash can do everything from the drawings to the actual animation of the graphics via a time line and effects you can apply.

Why is volatile faster?

It isn't. Volatiles are slower because they cannot be cached. They must be re-read from source upon every access.