What is the general syntax of a default constructor?
There is no such thing as 'the general syntax of a default constructor'. A default constructor is one that is generated by the compiler if you don't specify any constructors at all. Semantically speaking, it is public and takes no arguments, but this is not 'syntax'.
How do you print numbers from 1 to 100 using while loop in console application?
Here's how you do that in C++:
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;
int main()
{
int currentnumber = 0;
while (currentnumber <= 100) // exit loop when number equals 100
{
cout << currentnumber << endl; //output number and newline
currentnumber++; //increment variable to the next number
}
system("PAUSE"); //pause program so user can see results
return 0; //terminate program and hand control back to the operating system
What is the difference between MF Cobol and Mainframe Cobol?
It depends on the target platform. If you want to use MF COBOL on the mainframe then the answer is none, MF supports the mainframe as a target by using MF EEE. You write and unit test the code on the PC and then send the source off to the mainframe for compilation and final testing.
The name of a triangle is dependent on the type of angles within it. If it has a right angle it is called a right triangle, if it has an obtuse angle it is an obtuse triangle, and if all three sides are acute it is an acute triangle.
Is Visual Basic included with Visual Studio?
Visual studio is a collection of different language compiler, whereas visual basic is just a single language.
Visual studio express edition can be downloaded from www.microsoft.com/express A visual basic programmer uses visual studio to write and compile visual basic programs.
Microsoft Visual Web Developer focuses on the tools required to develop Web applications and is fully incorporated into Microsoft Visual Studio itself. Microsoft Visual Web Developer Express edition is a separate product that makes use of the same integrated development environment as Microsoft Visual Studio itself, but has a more limited set of language features.
Why c is called high level language?
Because C is one of the high level programming languages. Other examples: Pascal, Fortran, List, JavaScript, APL
hashing algorithm contain two components - hashing function & collision.
hashing is mechanism which generally used in random file organization to convert the record key value into address.
What is threading and multi-threading?
Multithreading computers have hardware support to efficiently execute multiple threads. These are distinguished from multiprocessing systems (such as multi-core systems) in that the threads have to share the resources of single core: the computing units, the CPU caches and the translation lookaside buffer (TLB). Where multiprocessing systems include multiple complete processing units, multithreading aims to increase utilization of a single core by leveraging thread-level as well as instruction-level parallelism. As the two techniques are complementary, they are sometimes combined in systems with multiple multithreading CPUs and in CPUs with multiple multithreading cores. Currently only Pentium 4's and i7's can use multithreading.
Answer
The above answer confuses the hardware concept of simultaneous execution with the Operating system concept of threads.
Multi-threading is an Operating System concept, and is independent of any hardware support. Threads (also known as lightweight processes), are a concept where a single program process can have more than one line of execution. A normal process has two portions in memory: its code portion, and its data portion. The code portion is the actual instructions which detail the flow of program, while the data portion are the values that this code flow operates on. You can think of the code portion as filled with algorithms (i.e. X + Y = Z ), and the data portion as containing the values to use in those algorithms (i.e. X = 3, Y = 5, and a place to store the value of Z when it is calculated).
Certain Operating Systems (indeed, practically all modern ones), support the concept of a thread. A thread is a separate line of executing in a process - that is, it shares the code portion of the process with other threads in that process, but has its own unique data. This is useful when a program wants to execute a bunch of similar things on different data. For example: I want to apply a filter algorithm to a bitmap picture. Using threads, the code portion of the process (which contains the algorithms to use) can be shared by several threads, but each thread operates on different data (each pixel in the bitmap).
Multi-threading is the concept of writing a program to be able to execute these multiple lines of executing on different data, all within the context of a single process. Thus, multi-threading requires support from the Operating System, proper system libraries to call the thread-specific functions from, and a program which has been written to use these concepts.
Multiprocessing is also an operating system concept, where the OS has the ability to appear to run multiple processes simultaneously; in reality, what is known as time-slicing provides this illusion. All OSes now have the ability to multi-process. Multiprocessing does not require any special effort on the application programmer's part.
Hyperthreading is a hardware concept, and is what is described in answer #1 above. Operating systems do NOT need to understand hyperthreading to take advantage of it (though, if they do, they can be more efficient). Programs are completely unaware of such hardware features.
Indeed, these days, it is entirely possible to run a multithreaded program on a multiprocessing Operating System, which itself is being run on a hyperthreading CPU.
Multithreading is the ability of an operating system to execute different parts of a program, called threads,simultaneously. The programmer must carefully design the program in such a way that all the threads can run at the same time without interfering with each other.
Answer
Taking a computer job/process, and coding it so the job utilizes multiple resources for execution, this finishing faster.
Example: A machine has 16 processors and the job uses all 16 processors to process.
How has the development of technology positively affected your wellness?
One of the greatest fields in modern technological advancement is medicine. With new medications, vaccinations, medical tools, and tests for illnesses, the human lifespan has lengthened considerably and quality of life has improved.
i want dfd on library management i want dfd on library management
What did Lambert think was a good estimate for pi?
3.1415294578390475389475839470508937048957345893748957348957349857348957893745983749587384
Describe the program development cycle and explain why it is called a cycle?
Design (write down how it should work), Implement (create some code), Test (make sure it works), Deploy (send it to the users), Maintain (fix bugs).
Note that depending on the methodology, these steps may occur very rapidly, or slowly, or bounce back and forth, or go in a full circle over and again.
What are dynamic memory allocation advantages?
Often an application needs additional memory for the temporary storage of data. For example, the C programming language allows the programmer to use the MALLOC (memory allocate) function to grab a chunk of memory suitable for the applications needs. Failure to release the memory after it is used by using the FREE function can result in problems. It is called dynamic memory allocation because the memory is allocated at run-time, as needed. Unlike variables created within functions - the memory is not allocated on the processor stack, instead, when using MALLOC or the 'new' keyword, memory is allocated in the applications virtual address space.
Where are the results of the 7th national Cyber Olympiad?
find the result on the official website www.sofworld.org.
What are some of the second generation computer programming languages?
Historically, 3GL languages were high-level languages that developed alongside third generation hardware. There were no 2GL or 1GL languages prior to that time, but the terms were applied reflexively such that 2GL included all high-level languages prior to 3GL, and 1GL became assembler language. Later, all high-level languages were regarded as 3GL, assembler as 2GL and machine code as 1GL. However, the terms have no practical meaning or purpose, nor do the terms 4GL and 5GL which followed. They are all meaningless buzzwords used by marketing types, and have largely fallen into dis-use. Some attempts have been made to clarify their meaning, but none have caught on and ultimately they simply serve to confuse. Languages are correctly classified by whether they are imperative, functional, procedural, structured, object-oriented, domain-specific, hybrid, etc.
High level programming is drag & drop, easy peasy programming. In the objects you use to create something ( program, graphics). The components are made up of middle level programming. A language that is easier to remember than zeros & one's...which is a low-level language that integrated chips use to work.
Why are high-level programming languages known as compiled languages?
They aren't. High-level languages can either be compiled, interpreted or both. Conversely, low-level languages are assembled.
A compiled language is one that requires a compiler program. The compiler may produce machine code, assembly code or byte code. Machine code can be executed directly without the aid of any additional runtime software -- it is the native language of the machine. Assembly code must be assembled to produce machine code. Languages that compile to assembly code give the programmer the opportunity to optimise the low-level code prior to assembly. Byte code, on the other hand, is code that must be interpreted by an interpreter.
An interpreted language is one where the source code cannot run by itself and must be interpreted by a runtime program, the interpreter. That is, the machine code is produced at runtime by the interpreter and must be re-interpreted every time the program is run. This results in much slower performance and greater memory consumption compared to the machine code programs produced by a compiler or assembler. However, the source code can be executed immediately without waiting for the entire program to be compiled, which can be time consuming with large programs.
C and C++ are both compiled languages that produce machine code. Java, on the other hand, is both compiled and interpreted because it compiles to byte code which is suitable for interpretation by the Java virtual machine. Java's main advantage is that the byte code will operate upon any platform that provides a Java virtual machine implementation (which is pretty much every device these days), without the need to recompile. Conversely, both C and C++ must be recompiled for each target platform. The advantage of these languages is the programs perform better and with less memory consumption than their Java counterparts. More importantly, since they do not require a runtime program to operate, they can be used to write operating systems, drivers and embedded software as well as applications, whereas Java is limited to applications software only.
Assembly language code for the Conversion of ascii to binary using 8085 microprocessor?
Org 1000
mov si,1100
mov di,1400
cld
mov bl,20h
next: lodsb
cmp al, bl
je exit
sub al,30h
cmp al,0ah
jc store
sub al,07h
store: stosb
jmp next
exit: hlt
What are the differences between Macros and Functions in C Language?
Subroutine:
1.When a task is to be done repeatedly then it is written as subroutine and this subroutine will be called each time to perform that task.
2.Subroutine program will be stored in some memory location and program control will be transfered to that location each time.
3.where as in macro the number of instructions will be less than subroutine.Here each time u call a macro that set of instructions will be inserted in that location.
4.macro doesn't have return statement while subroutine has.
5.memory requirement for macro is higher.
6.execution time of macro is lesser than subroutine.
What are some of the different types of software programming languages?
High level languages
Mid Level Languages
Low level languages
High level languages: cobol, fortran etc
Mid level languages: C, C++
Low level languages: assembly language
Programs to implement operations on doubly linked list in C?
Stack is an abstract data type that allows you to input and output data in a way that the first data which was placed in the stack will be the last one to get out. We use physical examples of stack in our daily lives such as the stack of dishes or stack of coins where you only add or remove objects from the top of the stack.
You can see the whole source code implementing the stack in related links, below.
What is the difference between machine dependent and code optimization?
Machine dependent code is in contrast to machine-independent, or portable, code.
Optimized code is in contrast to non-optimized code.
The two terms do not contrast each other; machine dependent code can be optimized or not optimized, and so can machine independent code.
Machine-dependent code relies on specific characteristics of the device it was written for. For example, it might depend on an integer variable to be 16 bits in size, or on a specific memory address to gain access to special hardware features (such as, for example, a ratl-time clock or serial port). Machine-dependent code is common in embedded software, which is generally written to suit small and specialized computer systems. It can be difficult to transport this code to a different machine due to these machine dependencies.
Machine independent or "portable" code contains fewer and, ideally, no such dependency. In theory, such code can be freely moved from one machine to another, provided all share support for the same programming language such as, for example, ANSI-C.
In reality however, no code is truly independent. Portable code may not depend on the size of an integer variable or the memory location of a serial port chip, but will instead depend on other factors. For example, it will depend on an ANSI compliant implementation of the C programming language, and an operating system with a standard POSIX API.
Code optimization, by contrast, does not necessarily introduce machine dependency. Many forms of machine dependence introduced by optimization are introduced by automated optimization steps. For example, the C compiler for machine A may be able to optimize code for this particular machine for fastest excution or smallest size (or a compromise of both). Since this hardware-dependent optimization occurs at a lower level than the C programming, it is not a concern for portability.
Other optimization steps can introduce machine dependency into the source code. For example, accessing a time-critical I/O device through operating system device drivers may lead to unacceptable latencies in some application. One might then decide to accept the disadvantage of machine dependencies on this occasion in order to meet the required timing constrains.
It is generally advisable to introduce such dependencies with great care and only after careful consideration, and to the smallest amount possible.
Name three examples of secondary storage devices?
The most popular secondary storage devices are hard disks, CDs, DVDs, USB Flash drive and floppy disks.