Sort the following numbers 19 5 28 2 7 using bubble sort?
Passes:
bold are "sunk" into place
1: 5 19 2 7 28
2: 5 2 7 19 28
3: 2 5 7 19 28
4*: 2 5 7 19 28
*The last pass had no swaps, thus it breaks out of the sort
Efficiency: O(n^2) in random order O(n) when already sorted
The BOOTP protocol uses multiple protocols, starting with port 67.
What is the difference between fseek and lseek?
lseek is a system call, but fseek is a C function belonging to the ANSI C standard library, and included in the file stdio.h
lseek uses file descriptor (return by open system call), but fseek uses pointer to FILE structure (return by fopen ANSI C library function) (though file desctor and FILE * can be used interchangeably several times).
System calls are to communicate directly with an operating system. Generally, system calls are slower than normal function calls.
Explain the Computer Information Systems vs Computer Science majors?
It largely depends on the university, but typically IS is a business major and CS is an engineering major. Not only will IS and CS have different requirements, so will the school of business versus the school of engineering. IS graduates typically find work in the network administration field while computer science graduates work in software development. These are broad statements though and may not be true of individual schools or graduates.
Is distributed system is loosely coupled or tightly coupled?
It can be either or even both - depends on how the designer(s) designed the distributed systems
Why the computer only understand the language of o and 1?
In computer programming, 1 is the presence of voltage, 0 is the lack of voltage. Thus, 1 is "on" and 0 is "off." In the interest of compacting more information into smaller spaces, bi-polar representations emerged. In a bi-polar format, a -1 is also considered "on." Since there can be no condition except presence of, or lack of voltage, then using symbols such as 20 will not work.
And, I'm not a whiz at computer components, but I believe it is the math processor (CPU) that determines the values of "on" or "off" and compiles the bits into bytes which it then compares to pre-determined responses.
Two main options for the design of assembler are:
1. One pass assembler
2. Multi-pass assembler
One pass assemblers generally have problem of "forward referencing" which is resolved by using mulitpasses
How do you delete an ith element in singly linked list?
You will need to traverse the list i times to get to the element you want deleted. Each time you go thru the list you will need to remember the forward pointer from the previous element because when you get to the element you want to delete the previous forward pointer needs to be pointed to the I + 1 element of the list.
List two types of computer investigations typically conducted in the corporate environment?
e-mail harassment, falification of data, gender and age discrimination, embezzlement sabotage, and industrial espionage.
What is style of function is not obsolete in c language?
Old:
function (par1, par2)
int par1;
char *par2;
{...}
New:
int function (int par1, char *par2)
{...}
When a subroutine is called where is the address of the instruction following the call stored?
That varies between different processors:
What is the full name of compaq in computer language?
Compaq was the name of a computer company, not a language. It derived its name from COMPatibility And Quality.
What is the scope of system analysis?
System Analysis.. The individual who analyzes and designs software systems and provides maintenance and support function for the users-systems design. A class can be described as a collection of objects of similar type. These objects often share the same attributes, operations, methods, relationships, and semantics. Additionally, once a class is defined any number of objects can be created and associated to that class. For example, beagles and boxers represent different breeds (i.e. instances) of "dogs" which also can be viewed as a distinct class. Furthermore, defining classes, as part of the object modeling process is not that different from the traditional system analysis process, which seeks to achieve a goal (i.e. object modeling seeks to understand a solution; whereas, system analysis which seeks to understand a problem).
Attributes are data fields that represent some property of the containing object that is shared by all instances of the object's class. Attributes normally have names (e.g., "Address") and Types (e.g., "String" or "Boolean"). An example of this would be the "Address" of a "User." In addition, attributes define the characteristics of the class that, collectively, capture all the information about the class.
Encapsulation represents packaging several items together into one unit. In addition the application of encapsulation involves keeping the external representation of an entities properties and methods independent of its actual implemented use. Encapsulation therefore, allows an entity to be leverage by other parts of an application without the fear of changes in the implementation use causing a snowball effect.
Process Modeling
Logical Process modeling is a technique for organizing and documenting the structure and flow of data through a system's processes and/or the logic, policies, and procedures to be implemented by a system's processes....
How many constructors are there for the string class?
The String class has multiple Constructors. Some of them are:
1. String - new String(String val)
2. Character Array - new String(char[] array)
3. Character Array with index positions - new String(char[] array. int start, int end)
What tools that hide identity online?
An anonymizer or an anonymous proxy is a tool that attempts to make activity on the Internet untraceable. It is a proxy server computer that acts as an intermediary and privacy shield between a client computer and the rest of the Internet. It accesses the Internet on the user's behalf, protecting personal information by hiding the client computer's identifying information.
How do I round up to the next largest whole number in C plus plus?
It's either floor(x)+1 or ceil(x) depending on what you want to get for integral x numbers:x or x+1
What is the largest prime number that can be stored in an 8-bit memory?
The largest number which can be stored in 8 bits is 255. The largest prime number which is less than or equal to 255 is 251.
What the difference between plus r and minus r?
Diferent Standars on DVD Disk/s. Feel free to choose the one you feel most confortable with. There is almost no different for the end user like you and me.
Seminar topics related with cryptography and network security?
Seminar topics related with cryptography and network security include: authentication which ensures clear communication before submitting secure information. Non repudiation is another great topic which ensures information is secure utilizing signatures. Integrity control is important when dealing with banks and online networks.
How to design a finite automata to accept a palindrome no?
Design a pushdown automata for the same.
Otherwise, you can use the following grammer :
S -> aSb|bSa|<NULL>