answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

What does InterNIC mean?

in·ter·na·tion·al

adj. (Abbr. int. or intl.)

1. Of, relating to, or involving two or more nations: an international commission; international affairs.

2. Extending across or transcending national boundaries: international fame.

n. International

Any of several socialist organizations of international scope formed during the late 19th and early 20th centuries.

Worldly.

What is a cylinder?

A solid figure that has 2 parallel bases that are congruent circles.

A Cylinder is a solid figure described by the revolution of a rectangle about one of its sides which remains fixed. Two ends of a cylinder are the circles of same diameter.

Examples include pipes, cans, and poles.

cylinder?

A Cylinder is a solid figure described by the revolution of a rectangle about one of its sides which remains fixed. Two ends of a cylinder are the circles of same diameter.

Examples include pipes, cans, and poles.

How does the 68HC11 know whether we are using the 2's complement system or not?

It doesn't! Only the programmer does. The C (carry) flag indicates an overflow/underflow for unsigned numbers and the V (overflow) flag indicates an overflow/underflow for signed numbers. When the processor does a computation both flags are set appropriately, but you're only interested in the one that corresponds to whatever number system you chose to use.

This is why there are different branch instructions for signed and unsigned numbers. For example, BHI is branch if higherand BGT is branch if greater than. These sound like the same thing, but BGT is used for comparisons of signed numbers and BHI is for unsigned. These branches don't know what number system you're using -- they just know what flags to look at. The combination of flags set by the comparison will cause BGT to branch if the numbers being compared are signed (and the second number is greater than the first) because it looks at the Z, N, and V flags. In particular, it branches on Z' AND [(N AND V) OR (N' AND V')] = 1. BHI looks at the C and V flags. It branches if C' AND Z' = 1.

Try out a couple of subtractions and keep track of your flags. Plug them into the branch formulas and you'll quickly see that the processor doesn't care whether your numbers are signed or unsigned. As long as you keep track and use the right branches, everything works perfectly.

If then else statements and case statements essentially perform the same function when would you use one over the other?

I would recommend an If - then - else statement over a switch statement because:

1. It is simpler/easier

2. You do not get unexpected output because of missing break statements

A missed break statement in one of the conditions in a switch case statement means that all the conditions that come after the success condition are executed. In case of if else this is not the case and hence it is much safer for novice programmers.

> essentially perform the same function

No, they don't. Here is an example to prove this:

if (sin (alpha) > cos (alpha)) {

...

} else if (alpha / M_PI * 180 > 180) {

...

} else {

...

}

Words or phrases that contain the word gold?

phrases:

  • heart of gold
  • a golden opportunity
  • gold medal
  • the goose that laid the golden egg
  • All that glitters is not gold.
  • gold rush
  • go for the gold
  • solid gold
  • gold record
  • golden brown
  • gold digger
  • golden birthday
  • golden anniversary
  • golden oldie
  • golden rule
  • gold standard
  • golden retriever
  • golden eagle
  • the golden gate
  • gold-rimmed
  • golden handshake
  • golden handcuffs
  • golden raisins

words:

  • marigold
  • goldenrod
  • goldbrick
  • goldfield
  • goldmine
  • goldsmith
  • goldmine
  • goldfish
  • goldfinch

Which program segment at run time is used to store interrupt and subroutine return addresses?

If this is a homework assignment, you really should try to answer it on your own first, otherwise the value of the reinforcement of the lesson due to actually doing the assignment will be lost on you.

Interrupt and subroutine return addresses are stored on the stack, so the stack segment is used for interupt and subroutine addresses.

Why return 0 is used in int main function in c?

It depends on the context.

- it means "no" in functions that check something (like "isatty", "isascii", "isdigit")

- it means "success" in functions whose return value is an error code (0 means no error)

- it means "fail" or "not found" in functions that return a pointer (like strchr or fopen).

What are some advantages of email over regular mail?

Email has changed the way we do business. Sure, people complain about the amount of Email they receive. But when all is said and done, using Email has impacted business in a positive way and has the edge over other methods of communication.

Here are five advantages of using Email:

Managing Email is Easy

You can manage all your correspondence on screen and so can your customers. Your proposal can be answered, revised, stored, and sent to others, all without reams of paper involved.

Email is Fast

Mail is delivered instantly...from your office to anywhere in the world. No other method of delivery can provide this service. Timely buying and selling decisions can be made in a heartbeat.

Email is Inexpensive

Compared to telephone calls, faxes, or over night courier service, Email is less expensive.

Email is Easy to Filter

The subject line on an Email makes it easy to prioritize messages. The reader can identify ritical correspondence quickly and dealt with it immediately. Unlike regular mail which needs to be opened and reviewed, or voice mail which requires you to either listen to or scan all your messages for those that require immediate attention.

Transmission is Secure and Reliable

The level of security in transmitting Email messages is very high, and the industry continues to strive to develop even tighter security levels. Email is private. Often telephone and fax messages are not. If the address information is correct, rarely does an Email go astray. Fax machines can be out of order or out of paper and this prevents an important message from being delivered in a timely manner.

Email is an Internet marketing tool that is fast, easy to use, inexpensive and effective. Email levels the playing field between the big corporations and small businesses. No longer is it just the big boys who have the resources to access the big advertising houses. Anyone can get their word out there using Email as the method of delivering the message.

What programming languages are used in programming an EEPROM?

In one sense, since EEPROM is memory, you don't program memory. You store things in memory, and the thing you are programming in this case would likely be a micro-processor or micro-controller that is on the same circuit as the EEPROM.

In theory, an EEPROM is just memory, so any language that would be able to produce machine language output for the CPU type connected to the EEPROM in any instance could be used.

In practice, many programs written to EEPROM would be for embedded systems. In this case, a lower level language like C could be used, or a higher level language that output C or the right kind of assembly.

A higher level language like C# or Java would likely not be used, as the overhead of the virtual machine might be considered to be too heavy for a micro-controller, or small micro-processor.

That being said, in practice, you could use anything. But it is likely you would have some libraries in C or C++ that you might want to use, so you would likely use a language that was compatible with any libraries you might use.

yah it's correct.

What is a low level misdemeanor?

A low-level misdemeanor is a minor criminal offense that is typically punishable by fines, community service, or short-term imprisonment, usually less than a year. Examples include petty theft, disorderly conduct, or public intoxication. These offenses generally carry less severe consequences than felonies and are often resolved through less formal legal processes. Despite their lower severity, low-level misdemeanors can still impact a person's record and future opportunities.

Full form of WIPRO?

Western India vegetable product ltd . It was actual name but now transformed to

western India product ltd

What are the categories of unshielded twisted pair?

{| ! Category ! Maximum data rate ! Usual application | CAT 1 (de facto name, never a standard)

Up to 1 Mbps (1 MHz) analog voice (POTS)

Basic Rate Interface in ISDN

Doorbell wiring CAT 2 (de facto name, never a standard) 4 Mbps Mainly used in the IBM cabling system for Token Ring networks CAT 3 16 Mbps Voice (analog most popular implementation)

10BASE-T Ethernet. CAT 4 20 Mbps Used in 16 Mbps Token Ring.

Otherwise not used much. Was only a standard briefly and never widely installed.

CAT 5 100 MHz 100 Mbps TPDDI

155 Mbps ATM.

No longer supported; replaced by 5E.

10/100BASE-T

4/16MBps Token Ring

Analog Voice CAT 5E 100 MHz 100 Mbps TPDDI

155 Mbps ATM

Gigabit Ethernet.

Offers better near-end crosstalk than CAT 5 CAT 6 Up to 250 MHz Minimum cabling for data centers in TIA-942.

Quickly replacing category 5e.

CAT 6E Up to 500 MHz

(field-tested to 500 MHz) Support for 10 Gigabit Ethernet (10GBASE-T.) May be either shielded (STP, ScTP, S/FTP) or unshielded (UTP). This standard published in Feb. 2008.

Minimum for Data Centers in ISO data center standard. CAT 7

(ISO Class F) 600 MHz

1.2 GHz in pairs with Siemon connector Full-motion video

Teleradiology

Government and manufacturing environments

Fully Shielded (S/FTP) system using non-RJ45 connectors but backwards compatible with hybrid cords.

Until February 2008, the only standard (published in 2002) to support 10GBASE-T for a full 100m. or go to http://searchdatacenter.techtarget.com/sDefinition/0,,sid80_gci211752,00.html |}

Different types of macros in assembler?

Types of macros In general, there are two types of macros: ExecutiveThese macros generate either code or data that is incorporated into the program being assembled.

Generally, an executable instruction is generated.DeclarativeThese macros produce information used by the assembly process while generating code.

z/TPF system programs use a large set of macro instructions to generate linkages or to simply generate inline code. Many of these macros are restricted to system programs because the macros are subject to change in future releases and represent an unprotected interface. A macro with an unprotected interface is called a system macro. Because some z/TPF system programs run in the application execution environment, some of the system macros also generate SVC linkages.

What is the difference between symbolic link and hard link?

A hard link is an actual physical entity representing the link. i.e.--data file on a server.

A symbolic link is a pointer to a physical entity. The purpose of a symbolic link is, if the object moves, the symbolic link is coded so no matter where the object physically resides, the database can find it. It requires less administration not having to update locations in files pointing to files that have moved. Symbolic links function similar to the short-cuts in a DOS based operating system

AnswerIn Unix and Unix-like systems, a hard link is a directory entry (filename) that points to the file itself. The operating system keeps track of how many hard links point to a file, so when the last hard link to a file is removed, the file is deleted. A symbolic link is a special file that only contains a filename. The file that a symbolic link refers to may not necessarily exist at any given time.

Why is cyclic inheritance not in any programming language?

Cyclic inheritance is physically impossible. A base class cannot inherit from one of its own derivatives any more than you could inherit some generic trait from one of your own descendants. Inheritance is strictly a one-way street.

Why wont your c plus plus program stay open?

If you are talking about the program executing, but the output screen being displayed for a flash and then disappearing, I suggest adding getch() or getchar() function at the end of your main function. This will make sure that the output screen waits for you to press a character before the program terminates.

Can Array-based lists can never be empty?

It's either an array or it's a list, it cannot be both. However, an empty array is entirely possible:

std::vector<int> my_vector; // an empty array

my_vector.push_back(42); // an array of 1 element

my_vector.push_back(1); // an array of 2 elements

my_vector.clear(); // an empty array

An empty list is also possible:

std::list<int> my_list; // an empty list

my_list.push_back(42); // a list of 1 element

my_list.push_back(1); // a list of 2 elements

my_list.clear(); // an empty list

The same thing can be done in C:

int* my_array = nullptr; // an empty array

my_array = malloc (2*sizeof(int)); // an array of 2 elements

my_array[0] = 42;

my_array[1] = 1;

free my_array; // an empty array

my_array = 0;