answersLogoWhite

0

📱

Computer Programming

A category for questions about computer programming and programming languages.

10,506 Questions

Which username must generally perform system administration tasks in Unix?

System administration tasks must generally be performed by the 'Administrator' username. This is the default name but it may changed in user accounts settings.

What is the power saving mode on your computer called?

  1. run, the computer is doing calculations normally (maximum power consumption)
  2. sleep, the computer is not doing calculations but maintains DRAM refresh to retain data internally (low power consumption)
  3. hibernate, the computer is not doing calculation but saved DRAM to a disk file so that DRAM refresh can also be stopped (minimal power consumption, often the computer actually turns off in this mode)

How to convert From human language to computer language?

Depending on what you're looking at, you may not be able to. My suggestions would be to find the appropriate program used to edit the type of file you're looking at, or to try to find a decompiler for the programming language the file corresponds to.

How was the concept of the Internet developed?

The concept of the Internet was developed during the Cold War. It was meant as a way for scientists and other "important" people to be able to connect and communicate using high-speed lines, no matter where they were.

What is purpose of computer programming?

A computer programmer is responsible for ensuring that computer applications operate properly. The programmer creates programs for use in computers across all platforms.

How many bytes in long?

The set of datatypes and the definition of each member is dependent on hardware, the language standard, and the language implementation. Not knowing which language the question relates to is particularly limiting.

In Java, a long consists of 8 bytes. This is also generally true for C and C++, depending upon the compiler used. See the related links for further details.

Find the missing number 6 3 9 12 21 54 87?

The next number in the sequence is 9. The rule is to add 2, then subtract 1, add 2, subtract 1, and so on.

Why is C plus plus such a robust programming language?

Borland's implementation of C++ was never regarded as the Bible of Computer Programming (whatever that means). If it were we'd probably still be using it today, but it was rendered obsolete in 1997 when Borland C++ Builder superseded it.

How many operators in c?

Quite a few. Some of them are:

, () [] & * . ->

+ ++ += - -- -=

* / % *= /= %=

! == <= >= < > !=

<< >> >>= <<=

& | ^ ~

&&

What are the disadvanteges of high level programming language?

Depends on the purpose of the program your creating. Generally speaking high level languages require far more system resources than low level languages. So if you were writing embedded code on a microcontroller, writing in Java would be a big no no as you'd barely be able to do anything whereas in C or assembler you could write a functional and useful program. (C is often used for faster development and high accuracy whereas assembler can be moulded to high performance low accuracy).

Can a queue be represented by a circular linked list with only one pointer pointing to the tail of the queue?

Yes.

With a linked list, each node in the list points to the next node, except the tail which points to nothing. To maintain the list we must keep track of the head node at all times. In order that all insertions and extractions occur in constant time, all insertions and extractions must occur at the head. Thus when we insert a new node, it simply points to the head and then becomes the head. And to extract the head, the next node from the head becomes the head before we delete the old head. Since all insertions and extractions occur at the head, linked lists can be used to implement a stack (last in, first out). We can also traverse the list from the head and insert at any point in the list in order to maintain a sorted order, however this cannot be done in constant time and there are more efficient ways of maintaining order than by a linked list.

In order to implement a queue (first in, first out) using a linked list, we need to maintain a pointer to the tail as well as the head. Extractions still occur at the head, as before but insertions now occur at the tail, where the tail points to the new node which then becomes the tail. However, rather than maintaining a separate pointer for the head, we can simply point the tail at the head, thus creating a circular linked list. Since the tail always points at the head we have constant time access to both through a single pointer. Insertions are only slightly more complicated in that new nodes must first point at the head node (which they can copy from the tail node) before the tail node points to the new node which then becomes the tail.

Which part of a machine language instruction specifies data on which an operation acts?

False, Op code specifies the operation to perform, the operand specifies the data.

Compare oodbms with rdbms?

The differences between the three approaches Table 1: A Comparison of Database Management Systems Criteria RDBMS ODBMS ORDBMS Defining standard SQL2 ODMG-2.0 SQL3 (in process) Support for object-oriented features Does not support; It is difficult to map program object to the database Supports extensively Limited support; mostly to new data types Usage Easy to use OK for programmers; some SQL access for end users Easy to use except for some extensions Support for complex relationships Does not support abstract datatypes Supports a wide variety of datatypes and data with complex inter-relationships Supports Abstract datatypes and complex relationships Performance Very good performance Relatively less performance Expected to perform very well Product maturity Relatively old and so very mature This concept is few years old and so relatively mature Still in development stage so immature. The use of SQL Extensive supports SQL OQL is similar to SQL, but with additional features like Complex objects and object-oriented features. SQL3 is being developed with OO features incorporated in it Advantages Its dependence on SQL, relatively simple query optimization hence good performance It can handle all types of complex applications, reusability of code, less coding Ability to query complex applications and ability to handle large and complex applications Disadvantages Inability to handle complex applications Low performance due to complex query optimization, inability to support large-scale systems Low performance in web applications Support from vendors It is considered to be highly successful so the market size is very large but many vendors are moving towards ORDBMS Presently lacking vendor support due to vast size of RDBMS market All major RDBMS vendors are after this so has very good future

What software is used to create art?

A variety of applications can be used in the software development process. The following are a list of different types of applications and some examples:

IDE: Codeblocks, NetBeans, Eclipse, Visual Studio, Stylus Studio, XMLSpy.

Documentation and design: Office

Other editors: UltraEdit, Notepad, Wordpad

Code storage: CVS, VSS, SVN

Databases: MSSQL, Oracle, MYSQL

Secondary:

Browsers: IE, Firefox, Chrome

OS: Windows, Linux

Drivers: Graphics driver, mouse driver, keyboard driver.

How do you script in roblox?

Scripting on Roblox is done using a programming language called Lua. There is a guide for it in wiki.roblox.com

EDIT: not a good one though. Try the scripting helpers forum if you need help beyond the wiki.

How are Structure passing and returning implemented by the complier?

When structures are passed as arguments to functions, the entire structure is typically pushed on the stack, using as many words as are required. (Programmers often choose to use pointers to structures instead, precisely to avoid this overhead.) Some compilers merely pass a pointer to the structure, though they may have to make a local copy to preserve pass-by-value semantics. Structures are often returned from functions in a location pointed to by an extra, compiler-supplied ``hidden'' argument to the function. Some older compilers used a special, static location for structure returns, although this made structure-valued functions non-reentrant, which ANSI C disallows

Why do you use inverted commas?

The inverted comma " " , is normally used to show what a person has said or is saying verbatim and not as reported speech.

Inverted commas are normally used it books to show when a person is speaking, this separates it from the narration of the story line.

For example:

John shouted to James "Come here quickly".

Paraphrased it would be,

John shouted to James to come quickly.

What makes windows os event driven?

Event driven application is a event happening in the operating system, when you click a button it makes an event, also a timer is a event, timers can be used in screen savers, after a certain amount of minutes, the timer will run out and the event for the screen saver to appear will happen :)

Hope i helped

How many program development cycle steps are repeated until no errors can be found in the program?

As many as can be squeezed out of the development budget. Deadlines can be pushed beyond the limit but budgets can only be pushed so far. If developers were forced to release 100% bug-free programs, nothing would ever be released on time let alone within budget. As soon as it's fit for purpose you have to ship, even if that means dropping problematic features -- you can always deal with them later.

Essential condition for pure object oriented language?

Mainly no primitive types such as int, char, bool, etc.

Java could be considered if it hadn't this primitive types.

Does computer programming have its own degree or do you need to major in computer science?

There are Associated Degree (U.S.A.) and Professional Certification available for Computer programming. But you don't need to have one to be a programmer, and have any of those (AA degree or certification) does not mean that you can or should program, either!!

Computer Science major is NOT the only way to learn computer programming. There should be courses available for non-computer science majors.