What is the syntax of a conditional statement in JavaScript?
In JavaScript we have the following conditional statements:
{
code to be executed if condition is true
}
If...else StatementUse the if....else statement to execute some code if a condition is true and another code if the condition is not true. Syntaxif (condition){
code to be executed if condition is true
}
If...else if...else StatementUse the if....else if...else statement to select one of several blocks of code to be executed. Syntaxif (condition1){
code to be executed if condition1 is true
}
else if (condition2)
{
code to be executed if condition2 is true
}
else
{
code to be executed if condition1 and condition2 are not true
}
else
{
code to be executed if condition is not true
}
What does the abbreviation 'MIS' stand for?
MIS is an abbreviation for "Management Information System."
Write adjacency and incidence matrix for all the graphs developed?
adjacency matrix- since the edges are the relationship between two vertices ,the graph can be represented by a matrix,
What is meant by excess 3 code in computer science?
Excess 3 code in computer, is defined as a number code in which the decimal digit 'n' is represented by the four bit binary equivalent of n + 3. Symbolically can be represented as XS-3 code.
Usually a scientific term for the third.
(Primary, Secondary, Tertiary)
Is there a Seminar report on a smart quill?
The seminar report on a smart quill should contain all the information discussed on the smart quill. The organizers of the seminar are the people who set the topic to be discussed.
What are sequence filters in bioinformatics?
Sequence filters in bioinformatics is the cleaning of sequences from low quality sequences, primers, adapters, vectors, and polyA/T and these process called preprocessing.
What are the four distinct actions that a machine instruction can specify?
• The processor fetches the instruction from memory • Program counter (PC) holds address of the instruction to be fetched next • PC is incremented after each fetch • Fetched instruction loaded into instruction register
Can computer drive in the center of Cairo?
I think not yet, but May be recently. Scentest do the best.
A computer system can be divided into 5 components:
In studying Computer Systems' Architecture, only the first 3 of these are of direct interest.
HardwareIn general, digital computers (the only type considered in this course) represent values as patterns of "off" and "on" signals. Each value requires a different pattern (or, at least, a pattern which is different from any other value of the same type). Different types of values generally are represented using different "encoding schemes". An "encoding scheme" specifies how many "off" and "on" signals are required for each value, and provides a unique pattern of signals for each possible value.
Data vs. InformationTwo terms common in any discussion of computer systems are "data" and "information". The difference in meaning between these two terms is based on the concept that "information" is "data" which has "meaning" to someone (or something) outside of the computer system."Information" is "data" which has meaning. The most common task of a computer system (especially when the input source and the output destination are the same) is to transform data into information. In fact, this is sometimes used as the basis for alternative definitions of a computer system .
The concept of "meaning" can be difficult. Generally, we think of "meaning" as implying that something with intelligence exists for which the "data" has meaning. When the output of a computer system is the automated control of some other system (as in CAD, Computer Aided Manufacturing), we end up debating, the unresolved question of what is meant by "intelligence".
1. The IPO(S) ModelA computer system can be thought of as a collection of components which together are capable of 3 operations: Input, Processing, and Output. A fourth operation, Storage, is also required for practical computer systems.Note that the IPO(S), Input-Process-Output(-Storage), model is applied to at least two different areas:
Power or energy sources required to enable operation of the computer system are not "inputs".
Processing:A computer system must include the ability to change or "transform" data which has been input. These "transformations" typically include (but are not limited to)For the purposes of this course memory (or "storage") will be considered to be an essential element of any computer system.
Discuss methods for handling deadlocks?
Make sure atleast one of the 4 deadlock conditions is never satisfied.
This may however be even more conservative than deadlock avoidance strategy.
Resources numbered 1 ... n. Resources can be requested only in increasing order. ie. you cannot request a resource whose no is less than any you may be holding.
Think of it as a state machine moving from 1 state to another as each instruction is executed.
Safe StateSafe state is one where
To avoid deadlocks, we try to make only those transitions that will take you from one safe state to another. We avoid transitions to unsafe state (a state that is not deadlocked, and is not safe) eg.
Total # of instances of resource = 12
(Max, Allocated, Still Needs)
P0 (10, 5, 5) P1 (4, 2, 2) P2 (9, 2, 7) Free = 3 - Safe
The sequence is a reducible sequence
the first state is safe.
What if P2 requests 1 more and is allocated 1 more instance?
- results in Unsafe state
So do not allow P2's request to be satisfied.
Banker's Algorithm for Deadlock AvoidanceWhen a request is made, check to see if after the request is satisfied, there is a (atleast one!) sequence of moves that can satisfy all the requests. ie. the new state is safe. If so, satisfy the request, else make the request wait.
How do you find if a state is safen process and m resourcesMax[n * m]
Allocated[n * m]
Still_Needs[n * m]
Available[m]
Temp[m]
Done[n]
while () {
Temp[j]=Available[j] for all j
Find an i such that
a) Done[i] = False
b) Still_Needs[i,j] <= Temp[j]
if so {
Temp[j] += Allocated[i,j] for all j
Done[i] = TRUE}
}
else if Done[i] = TRUE for all i then state is safe
else state is unsafe
}
Detection and RecoveryIs there a deadlock currently?One resource of each type (1 printer, 1 plotter, 1 terminal etc.)
Multiple resources of each type
Check R matrix, and find a row i such at Ri < A.
If such a process is found, add Ci to A and remove process i from the system.
Keep doing this till either you have removed all processes, or you cannot remove any other process.
Whatever is remaining is deadlocked.
Basic idea, is that there is atleast 1 execution which will undeadlock the system
What are objectives for artificial intelligence?
AI systems are being developed in a variety of new application areas with the goal of automating perception, decision-making, and action with less-than-human precision. The AI system can add round-the-clock performance or just a technique to cope with very huge amounts of data in a variety of beneficial application scenarios.
To learn more about data science please visit- Learnbay.co
What is non weighted code give you its example?
Weighted codes have there bits presented in weightage.
Simply put weighted codes are codes used for arithmetic operation.
And unweighted codes there are no values for the bits.
Simply put they can not be used for calculations.
Examples are
8421 (BCD) binary, hex, octal ETC. For the former
And
grey codes, excess-3 etc. For the later.
What are the advantages and disadvantages of expert system?
* * * * * * \ * Advantages: ** Provides consistent answers for repetitive decisions, processes and tasks ** Holds and maintains significant levels of information ** Encourages organizations to clarify the logic of their decision-making ** Never "forgets" to ask a question, as a human might ** Can work round the clock ** Can be used by the user more frequently ** A multi-user expert system can serve more users at a time Disadvantages: ** Lacks common sense needed in some decision making ** Cannot make creative responses as human expert would in unusual circumstances ** Domain experts not always able to explain their logic and reasoning ** Errors may occur in the knowledge base, and lead to wrong decisions ** Cannot adapt to changing environments, unless knowledge base is changed
What school subjects do you need to study in high school to become a scientist?
You will need all your sciences on Higher Grade (HIGCSE - Cambridge Curriculum) to be eligible to study in any Science field at University, so depending on what area you want to specialize in, you will need Biology, Mathematics, Physics (Physical Science), Chemistry and or Geography.
Data type, or more commonly datatype as it related to database management systems is the phyisical format by which the data in a database managment is stored on the computers harddrive. The datatypes are database specific. In general, you need to have the same datatype to be able to compare, sort, append data. Data that is not of the same type needs to be CAST or converted to the other datatype before such operations on the data can be performed. Many times this conversion is internal, but in some database management systems, you ned to explicitly convert the data.
How do you get the new association name for computer science and engineering?
tese(technology enriched software engineers)
What is the relationship between computer science and mathematic?
Their relationship is they both deal with numbers such as scientific notations, getting formulas and solving equation. They both have facts.