Which are programs that pretend to be a useful program but do something malicious on your computer?
Trojan Horses
What are the advantages of worst-fit algorithm?
It can be used in computer programming. It helps you to see which options are not viable and would not help out the situation.
What steps are required form an algorithm to convert a binary number to it's decimal equivalent?
Let's look at an example. If you want to convert the number 100112 to decimal you can split up the number so each digit has an index associated to it:
4 3 2 1 0
1 0 0 1 1
We can then find the decimal value:
24 * 1 + 23 * 0 + 22 * 0 + 21 * 1 + 20 * 1 =
16 * 1 + 8 * 0 + 4 * 0 + 2 * 1 + 1 * 1 = 16 + 0 + 0 + 2 + 1 = 19
So what we need to do is to multiply each of the binary digits by the value of two raised to the index of the digit. This will give you the conversion from any binary number to a decimal number.
What are the differences between thread and function in C plus plus?
As people do computer has head to think and hands to work. Under the control of it's head(CPU), you can consider threads as its hands. A computer has more than one hand, every hand would do one thing independently but have to wait its order. Function, as it demonstrate by the name, means what task a software can conduct.
How many constructors may be defined for a class?
As many as are required for the class to function. All classes other than static classes require at least one constructor. Most classes will also provide copy and move constructors (with corresponding copy and move assignment operators). Additional constructors are usually provided to increase the flexibility of the class, allowing users a variety of ways to initialise objects of the class.
Constructors that accept just one argument (excluding the copy and move constructors) are regarded as being conversion constructors because, from a user's perspective, they effectively convert their argument into an object of the class.
Although there is effectively no limit to the number of constructors you can define, do keep in mind the mantra that simple concepts should be expressed simply and no simpler. Make good and proper use of inline initialisation, default arguments and delegation. Use explicit constructors to avoid narrowing issues and implicit conversions where narrowing is acceptable. Also, make good use of RAII (resource acquisition is initialisation) to ensure proper cleanup should any member fail to initialise during construction. For efficiency, perform as much initialisation as possible outside the body of the constructor. Ideally, the constructor body should contain no code at all.
What is mean by Extra key inserted at the end of Array?
It means the array has a sentinel to mark the end of the array. Any elements that follow the sentinel element are deemed invalid. Sentinels are usually denoted with a special value that is not used by any of the elements that precede it. Null-terminated strings are an example, where the NULL character (ASCII code 0) marks the end of a character array.
Explain the structure of c program with an suitable example?
Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main()
{
Declaration part Executable part (statements)
} /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) .
.
. (return type) (function name n) (arguments...) Basic structure of a C program is /* Documentation section */ /* Link section */ /* Definition section */ /* Global declaretion section */ /* Function section */ (return type) (function name) (arguments...) void main()
{
Declaration part Executable part (statements)
} /* Sub-program section */ (return type) (function name 1) (arguments...) (return type) (function name 2) (arguments...) .
.
. (return type) (function name n) (arguments...)
How do you classify triangles by angles and sides?
you classify triangles by seeing the sides as if the triangle was isosceles, equilateral, or scalene
Isosceles= two angles equal or two sides equal
Equilateral= all angles equal and all sides equal
Scalene= all angles different and all sides different.
☻☻ I HOPE IT HELPED☻☻
What application instruction that make the computer hardware work?
The CPU does all the actual work and there can easily be a hundred or more separate instructions that a modern CPU understands, each of which does a very minute job, whether it is to move a value into a register or into memory, or to compare register values, or to perform simple arithmetic upon them, and so on. Common interfaces provided by the BIOS allow the CPU to interact with the basic hardware components in order to load an operating system, while the operating system itself provides more specific device control via driver software.
Examples for low level languages?
Low level languages can interact directly with the computer's basic functions and many low level tasks, hence the name low level language. Some examples include:
ASM (also known as Assembly)* is used to write Windows and Linux operating systems.
Machine code** is another one which requires no translation for the computer to understand, but it is almost never used because every function has to be perfect and the programmer must also memorize every command.
C is also a low level programming language, but is easier to use, a base for many high level languages and is used more frequently than the other two languages just mentioned.
Related Information:
* ASM looks like this:
fib: mov edx, [esp+8]
cmp edx, 0
ja @f
mov eax, 0
ret
** Machine code looks like this:
8B542408 83FA0077 06B80000 0000C383 FA027706 B8010000 00C353BB 01000000 B9010000 008D0419 83FA0376 078BD98B C84AEBF1 5BC3
What is an explaination of advantages of mail-merge?
Mail-merge's main advantage is to save a lot of time.
Fundamentally, mail-merge means taking one form letter, and then using a program/computer, to modify small parts of it based on a list.
Most typically, one has a common letter whom which to sends to several different persons.
Usually, the only things different between each letter would be the addressee, the salutation, and perhaps other minor customizing attributes like "Mr.", "Ms.', etc.
Mail merge uses a list of data with named items corresponding with special parts of the letter with the same named areas.
As each letter is generated or printed, each named entry in the list of data gets placed into the same named place in the letter making it seem as though each letter was customized yet the computer does the customization.
Clearly, when tens or hundreds or more letters (or other types of correspondence) need to be sent to a list of different people or companies, mail-merge can do most of the work for you.
Most businesses, for example, maintain address lists of customers. Using mail-merge, the computer does the letter salutation, possibly other differing content based on customer, and most importantly, takes care of addressing both the letters and envelopes.
Even the holiday cards and letters can be customized and addressed the same way.
What is a computer program that tells the computer how to perform particular tasks?
Every software program have a help section it would assist you the best telling you about the usability of that particular software or program.
computer virus
The Internet is a WAN. It "INTERconnects NETworks" over the widest area possible, the Earth.
You cannot invoke a constructor explicitly. It will get invoked implicitly when you call the new keyword on the class to create an object of the class.
Ex:
private ClassExample obj = new ClassExample();
here this new keyword usage on the ClassExample class will invoke the constructor of this class and create an object of that class.
#include<stdio.h>
#include<graphics.h>
#include<math.h>
#include<conio.h>
#include<dos.h>
#include<alloc.h>
#include<stdlib.h>
#define RAD 3.141592/180
class fig
{
private:
int x1,x2,y1,y2,xinc,yinc;
public:
void car()
{ xinc=10;yinc=10;
x1=y1=10;
x2=x1+90;y2=y1+35;
int poly[]={x1+5,y1+10,x1+15,y1+10,x1+20,y1,x1+50,y1,x1+60,y1+10,x1+90,y1+17,x1+90,y1+20,x1+5,y1+20,x1+5,y1+10};
setfillstyle(SOLID_FILL,LIGHTGRAY);
setlinestyle(SOLID_LINE,1,2);
setcolor(4);
drawpoly(9,poly);
line(x1+15,y1+10,x1+60,y1+10);
line(x1+20,y1+10,x1+20,y1);
line(x1+35,y1+10,x1+35,y1);
line(x1+50,y1+10,x1+50,y1);
floodfill(x1+18,y1+8,4);
floodfill(x1+28,y1+8,4);
floodfill(x1+36,y1+8,4);
floodfill(x1+52,y1+8,4);
setfillstyle(SOLID_FILL,4);
floodfill(x1+18,y1+12,4);
setfillstyle(SOLID_FILL,BLUE);
bar(x1+5,y1+20,x1+90,y1+25);
setcolor(DARKGRAY);
circle(x1+20,y1+25,8);
circle(x1+20,y1+25,6);
setfillstyle(1,8);
floodfill(x1+21,y1+25,8);
circle(x1+70,y1+25,8);
circle(x1+70,y1+25,6);
floodfill(x1+71,y1+25,8);
int size=imagesize(x1,y1,x2,y2);
void far *buf=farmalloc(size);
getimage(x1,y1,x2,y2,buf);
while(!kbhit())
{ putimage(x1,y1,buf,XOR_PUT);
x1+=xinc;x2+=xinc;
if(x2<(getmaxx()-10))
putimage(x1,y1,buf,COPY_PUT);
else
{ cleardevice();
x1=10;x2=x1+90;
y1+=yinc;y2+=yinc;
if(y2<(getmaxy()-10))
{ putimage(x1,y1,buf,COPY_PUT);
}
else {y1=10;y2=y1+35;}
}
delay(200);
}
farfree(buf);
getch();
}
}
}
}
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"d:\\cplus");
fig f;
f.car();
cleardevice();
closegraph();
}
Which computer programming languages are the standard?
The older languages are still the standards by which modern programming languages are measured. Fortran, COBOL, Lisp, and C/C++ are all used as baselines to evaluate newer languages. Of course, the "new kids" are being used as standards more and more often. Java, Ruby, Perl, Python, and other more modern languages are being used to measure how "good" a new language is.
In programming, a regular expression is an expression that explains a pattern for a string. A string matches a regular expression if that string follows the pattern of that regular expression. For example, you may want to create an account system, allowing usernames to only have uppercase and lowercase letters, and numbers. While a user is registering, you can check their desired username against a regular expression involving only alphanumeric characters (A-Z, a-z, 0-9). If it matches, then the username is valid to your requests. If it does not, the user has put in a character that does not follow the pattern of the regular expression. In regular expressions, you can match certain characters, match a certain quanity of characters, match the casing of characters (or just ignore it overall), and plenty more. The syntax of a regular expression varies throughout every programming language, but Perl is often used due to its wide variety of options. Perl is also incorporated into many web languages, such as PHP, making regular expressions less of a hassle. This is an example of a Perl regular expression, allowing a string with only alphanumeric characters (any character case), and an infinite length (except for a string with no length or no characters, in which the regular expression does not match the string): /^(?i)[a-z0-9]+$/
What is the difference between C programming and CPP programming?
C has no object oriented support. C++ is a superset of C that adds object-oriented support, but retains the concept of primitive variables. C# is a superset of C++, developed by Microsoft, that removes the concept of primitives, making it fully object-oriented but, unlike C and C++, is non-generic and is only useful for .NET programming. C# is not unlike Java, but Java is fully cross-platform and therefore has much wider support.
What are advantages and disadvantages of Round Robin scheduling algorithm?
Pure round robin scheduling processes A, then B, then C, then starts at A again.
(A, B, C might be tasks in an operating system context, or devices in a master/slave control network, or whatever.)
That is, pure round robin scheduling doesn't acknowledge priorities, and does not allow out-of-order processing.
Real-life systems typically use a mixture of algorithms that, together, allow for prioritized and out-of-order processing while, on the other hand, trying to prevent starvation of lower priority items.
What is the basic part of the computer and its function?
Hardware is physical part of a computer and software is piece of code that runs the computer. For instance, violin is hardware and music is the software.
New modern computers used small electronic components, which can be imprinted on the surface of silicon chip.
The most generally used electronic component is transistor.
Transistor work as a like a amplifying valve for a flow of electrons.
The transistor is a solid-state device, which has no moving parts. Basically, it is a building block for constructing more complex electronic components.
Vacuum tube was used before the invention of transistor.
Since than transistor have been made smaller and smaller and making more and more of them to be imprinted on silicon chips.
Central processing units is referred to as a
“brain” of computers.
It is hardware with in a computer and carries out the instruction of computer program.
CPU runs the code and manipulates the data, while components have quite more passive roles.
For instance storing data.
In older days, CPU requires one or more printed circuit board.
After the invention of microprocessor, CPU could be remained with in silicon chips.
There are two main components of CPU, arithmetic logic unit which performs the arithmetical and logical side and control unit which carry the instruction from memory, decodes and process them.
Random Access memory is temporary storage device.
Random access memory let any data to store and access quickly in random order while in other storage device such as Hard disk, CDs, and DVDs etc. read and write the data only in predetermined order. It is because of mechanical design limitation.
The main features of RAM are that it can keep its state as long as power is on.
Hard drive is a long-term storage for bytes as files and folders.
The hard disk drive read the write the magnetic patterns magnetic patterns on a spinning metal disk to store data.
Flash drive is also a solid-state drive with silicon chips to store bytes.
In both case, hard disk drive or flash drive maintain its state of storage even when the power is turn off.
Is the instructions programmers have written in a higher level language?
"BASIC" is not a program, it is a programming language. A particular BASIC-interpreter or IDE may have been written in a high level language, maybe even in BASIC (C is more plausible though).