Why you use constructor instead of function?
For every class an empty constructor will be defined automatically by default unless you provide a constructor definition manually. Constructor in a class can be used to initialize variables or perfrom some basic functionallity whenever an object is created.
What is Multilevel feedback queue?
A multi-level feedback queue scheduling policy gives preference to short and I/O bound processes, it also rapidly establishes the nature of a process and schedules it accordingly. Multi-level feedback queues work on priorities. Processes are placed in separate queues based on their priority, this in turn is based on their CPU consumption and If a process uses too much of the CPU, it will be given a lower priority and therefore get less CPU time than fast and I/O bound processes. Any processes that do not complete in their allocated time slice / quantum are demoted to a queue of less priority, these lower priority queues generally have larger quantums / time slices. Each of the queues may use a different scheduling algorithm, this is done to make the overall scheduling method as efficient as possible. The features that may vary between different multi-level feedback queue scheduling methods are: - The number of queues - The scheduling algorithm assigned to each queue - The method used to promote/demote processes to different queues - The method that determines which queue a process enters --- Thomas Lee
What is formal parameter in c?
A variable declared in the header of a method whose initial value is obtained during method invocation (using the actual parameter). So: int method(/*Formal Parameters*/){ //Method Actions return 0; }
Write a c program divisible by 3 and 5 or not?
void main(){ int i,j; scanf("%d",&i); if((i%5)==0) printf("the given number is divisible by 5); }
What kinds of things can become objects i oop?
An object is an instance of a class by which we can access a number variable and a member function. It is a blue print of a class. It is a basic runtime entity of an object oriented programming. Object contain data and code to manupulate that data. When a program is exicuted the object interact by sending message to one another.
What are some advantages and disadvantages of using a computer?
There are almost 0 disadvantages to this. With a computer screen you get to see what you are doing on your computer. Without one there is no point of a computer since you would not be able to use it.
What are the disadvantages of switch statement in C-language?
In some languages and programming environments, a case or switch statement is considered easier to read and maintain than an equivalent series of if-else statements, because it is more concise.
However, when implemented with fall-through, switch statements are a frequent source of bugs among programmers new to the switch statement.
Architecture of expert expert system?
expert system architecture need to act like the process expert attempt to do for reasoning based on the given facts. architecture comprise of interface, explanation system, inference engine and knowledge editor as a shell,which can be configured on different knowledge area without changing the whole structure of expert system, and the removable part constitute of domain-specific and general knowledge section. in general knowledge section refer to those knowledge representation(usually in the form of ruled-based) symbols which is needed for expert system to running. domain-specific refer to those facts that entered by user or is the conclusion of the last operation in inference part. resemble it to individual experts, general knowledge section have a role of long-terms memory and domain specific have role of working memory which is manipulated or updated by inference engine. in fact inference engine use both of this storage for reasoning and making inference about the problem. generally inference engines use recognize-act chain in order to solve the problem. process of problem solving in forward chaining method for inference start with typing of problem from GUI by user, the facts go into domain specific storage,in this part the first action on recognition-action cycle of inference engine take place. all of the facts in domain-specific storage being compared with rules in general knowledge storage. this part is called matching, after that inference engine need choose the most appropriate one from conflict set(set of rules in matched in first step). for this purpose it may use conflict resolution strategy which is the job of interpreter. interpreter is part of the inference engine that execute selected agenda based on the given criteria. what will happen then is selection of rule based on namely three main category of strategy:1-in the case of two or more condition use the one that are more specific 2-if two or more rule have appropriate condition for selection use the one used in facts 3-if system match the same condition for two different role the latest rule need to be eliminated because iteration may take place. after selection of rule execution part start if executed result is the one desired problem is solved if not, result store in domain-specific section and cycle renewed. the process of inference engine is the same for back-ward and forward chaining what make difference is the load and reload of working memory and other things.(and this is the thing that u need to find out!). explanation system which is part of the shell(you can see more about shell by searching on wikianswer ;)). explanation system provide description about why expert system decide on particular course of action and how it conclude to this result. mechanism counterintutivelly simple. explanation system just exploit the knowledge pattern it followed during the work of inference engine. it track back use storage to find out what have been decided and how inference engine imply based on th rules.(just like it's human counter part) i don't know much about the detailed flow of work in explanation systems but i really love to. knowledge editor as its name imply manipulate the general knowledge storage, adding , deleting and changing undertake by knowledge engineer but knowledge editor written by professional programmer. hope this would help but again check other places because there s lot more u need to know.good luck have fun!
What is profit oriented entite?
A profit-oriented entity is an organization or business whose primary goal is to generate profit for its owners or shareholders. This type of entity focuses on maximizing revenues while minimizing costs, often prioritizing financial performance and shareholder value. Profit-oriented entities can include corporations, partnerships, and sole proprietorships that operate in various industries. Their success is typically measured by financial metrics such as net income and return on investment.
A counted loop is a loop that executes the loop's statement a pre-determined number of times. The count represent the exit condition of the loop. A loop that is not counted is an infinite loop.
What is the difference between open source and closed source software?
commercial software is made for profit. it is maintained by a company, and it's code is a trade secret, hidden, "closed source", because you can't see it (and therefore steal it)
open source software is free to use. it is created not for profit, typically maintained by a community of individuals. its code is free for everyone to look at, modify, steal, etc.
sometimes you will have trouble downloading open source software - make sure you download the "windows binaries" or "windows compile" and not the source code
What is the difference between Procedural programming and Markup?
The way I understand it Markup Language is used for adding extra features, like structure or presentation of the text, objects etc.
Programming language is used for creating programs.
Basically in the example of the car, markup languagewould be the tools used to create the body and design, and programming language - the tools used to build an engine.
Write a programme in BASIC to find the sum of first fifty numbers entered through the keyboard?
10 for t = 1 to 50
20 input a
30 c = c + a
40 next t
50 print c
What is function of include in c language?
The #include directive is used to tell the preprocessor that the specified file's contents are to be included at the point where the directive appears, just as if you'd typed those contents in full yourself.
Include files are primarily used to organise declarations of external variables and functions, complex data types, constants and macro definitions. The code need only be declared once, and included wherever required. Think of include files as a means of providing forward declarations without having to retype those declarations in full. The definitions of those declarations needn't be contained in the included file, but they must be made available to the program, either as a linked library or as a separate source code file which includes those same declarations.
The include keyword is used in C to tell the linker what libraries your code is going to be using.
Can you implement merge sort without using recursion?
Sure, recursion can always be substituted with using a stack.
According to computer networking: a top-down approach, the transmission rate of Ethernet LAN is 10 Mbps, 100 Mbps, 1 Gbps and 10 Gbps. Maximum rate can be transmitted to a destination that is not being transmitted to by other users.
How do you draw object oriented design of Library Management System?
well ladies and gentelmen kal hai shanivar is the...post office me banta hai card adhaar is the!! :p
NOW seriously,,,take a paper and make the gola with pencil, and take a actor with straight hands and legs and join the gola with the actor using teer..
and u will have ur pyaara data flow diagram.
What are the objectives of Job Data Documentation?
Objectives or Purposes of Job Analysis
Conducting this analysis provides support for the accomplishment of your organization's strategic business objectives.
The list of objectives will include the following:
to assist in the preparation of up-to-date job description and job specification
to ensure effectiveness of recruitment exercises
to aid in formulating an effective performance management system
With reference to recruitment, Wikipedia states that
"the main purpose of conducting job analysis is to prepare job description and job specification which in turn helps to the hire right quality of workforce..."
It must also meet your employees' needs. This is shown by the way how job analysis can assist in designing a good performance management system.
How do you open a Qbasic file?
QBASIC GRAPHICS
There any many different things you can draw in QBASIC; ranging from...
-dots
-lines
-rectangles
-circles
-shapes empty/or, filled in(painted)
-you can even do LOGO style programming to draw graphics with; by joining up connected lines
-animations are possible, too
====
QBASIC BUILT-IN HELP FILE + CODE EXAMPLES
In order to view the QBASIC built-in Help file...; first, load the QBASIC program itself...; and, then, do a combination key press of:
[SHIFT] + [F1]
Use the built-in QBASIC Help file to learn more about how to use these 'graphic related' commands, and, more...!
The QBASIC Help file also contains plenty of 'example codes'; which you can just use 'copy & paste'; then, RUN...to see what the output effect will be...???
Write an Assembly language program to multiply 32 bit numbers?
.data mult1 dw 2521H dw 3206H mult2 dw 0A26H dw 6400H ans dw 0,0,0,0 .code mov ax,@data mov ds,ax ; LEA SI,ans mov ax,mult1 mul mult2 mov ans,ax mov ans+2,dx mov ax,mult1+2 mul mult2 add ans+2,ax adc ans+4,dx adc ans+6,0 mov ax,mult1 mul mult2+2 add ans+2,ax adc ans+4,dx adc ans+6,0 mov ax,mult1+2 mul mult2+2 add ans+4,ax adc ans+6,dx mov ax,4C00h int 21h end
What are the advantages and disadvantages of stacks and queues in data structure?
Stack and Queue have elements enter and leave frequently, and the total number of elements within the container (the stack or the queue) may be unpredictable. That is, the size of the container may be 0 or very huge.
Array is a fixed size collection. When adding an element, if the array is already full, it cannot simply add another "slot" to hold the new entry. The program must create another array instance that is big enough to hold the original elements and the new comers, which means all the elements must be "moved" from the current array to the newly created one.
Linked list has the advantage of easily adding and removing a node (to hold an element) and keep the ones already in the list untouched.
Write a program to insert or delete a node from doubly linked list?
Encoder:- In character recognition, that class of printer which is usually designed for the specific purpose of printing a particular type font in predetermined positions on certain size forms.
(electronics) In an electronic computer, a network or system in which only one input is excited at a time and each input produces a combination of outputs. encoder http://www.answers.com/main/Record2?a=NR&url=http%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FImage%3AEncoder%2520diagram.svg http://www.answers.com/main/Record2?a=NR&url=http%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FImage%3AEncoder%2520diagram.svg Circuit diagram of a single bit 4-to-2 line encoder A3A2 A1 A0 F1 F0 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0 Encoder:- In character recognition, that class of printer which is usually designed for the specific purpose of printing a particular type font in predetermined positions on certain size forms.
(electronics) In an electronic computer, a network or system in which only one input is excited at a time and each input produces a combination of outputs. encoder http://www.answers.com/main/Record2?a=NR&url=http%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FImage%3AEncoder%2520diagram.svg http://www.answers.com/main/Record2?a=NR&url=http%3A%2F%2Fcommons.wikimedia.org%2Fwiki%2FImage%3AEncoder%2520diagram.svg Circuit diagram of a single bit 4-to-2 line encoder A3A2 A1 A0 F1 F0 0 0 0 1 0 0 0 0 1 0 0 1 0 1 0 0 1 0 1 0 0 0 1 1 Truth table
What is assembler and interpreter?
There are two types of assemblers based on how many passes through the source are needed to produce the executable program.
What is the purpose of programming languages?
C is often used for "system programming", including implementing operating systems and embedded system applications, due to a combination of desirable characteristics such as code portability and efficiency, ability to access specific hardware addresses, ability to pun types to match externally imposed data access requirements, and low runtime demand on system resources.
Prototyping is used on large or complicated systems so the user can get a feel for the overall functionality of the system. When using a prototype, errors and confusing or missing functionality can be addressed quickly.