11-26-2011, 07:22 PM
CS101 Solved Subjective Part Midterm
Question No: 31 ( Marks: 1 )
What does TCP/IP stand for?
Transmission Control Protocol
Question No: 32 ( Marks: 1 )
Why there is a need to use primary key in database ?
Primary Key is a field that uniquely identifies each record stored in a table
Question No: 33 ( Marks: 2 )
What is image processing ?
Image Processing:
A branch of computer science concerned with manipulating and enhancing computer
graphics
Question No: 34 ( Marks: 2 )
Define testing with respect to programming..
Testing: The tasks performed to determine the existence of defects
Question No: 35 ( Marks: 3 )
How can we define a computer screen?
Question No: 36 ( Marks: 3 )
What is difference between Design and System Architecture?
System
A collection of elements which working together produces a result not achieved by
the things alone
System Architecture
The structure
(in terms of components, connections, constraints) of a product or a process
Question No: 37 ( Marks: 3 )
Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output.
a = 236.2363611111556;
b = a.toString( ) ;
decimalPos = b.indexOf( ".", 0 ) ;
c = b.substring( 0, decimalPos + 3 ) ;
document.write( c ) ;
Question No: 38 ( Marks: 5 )
Show output of the following code:
for (i=0; i<=10; i++)
{
document.write("The number is " + i);
document.write("<br />");
}
Question No: 39 ( Marks: 5 )
What is a Relational Database? Give the names of any three RDBMS software. (2+3)
Relational Databases
• Databases consisting of two or more related tables are called relational databases
• A typical relational database may have anywhere from 10 to over a thousand tables
• Each column of those tables can contain only a single type of data (contrast this
with spreadsheet columns!)
• Table rows are called records; row elements are called fields
• A relational database stores all its data inside tables, and nowhere else
• All operations on data are done on those tables or those that are generated by table
operations
• Tables, tables, and nothing but tables!
RDBMS
• Relational DBMS software
• Contains facilities for creating, populating, modifying, and querying relational
databases
• Examples:
–Access
–FileMaker Pro
–SQL Server
–Oracle
Question No: 40 ( Marks: 10 )
Define the following terms.
* Object
* Event Handler
* Local Variable
* Scope of Variable
* Array
Object
A named collection of properties(data, state) & methods (instructions, behavior)
Event Handler
An event handler is a command which calls a function when an event happens, such as the user clicking a button
Local Variable
Declaring variables (using the var keyword) within a function, makes them local•They are available only
within the function and hold no meaning outside of it
Scope of Variable
Defining the space in which a variable is effective is known as
defining the scope of a variable. A variable can be either local or global in scope
Array
Question No: 27 ( Marks: 1 )
What is the Brute Force Strategy?
Answer:. A staretegy in which all possible combinations are examined and best among them is selected. Brute force (also known as brute force cracking) is a trial and error method used by application programs to decode encrypted data such as passwords or Data Encryption Standard (DES) keys, through exhaustive effort (using brute force) rather than employing intellectual strategies.
Question No: 28 ( Marks: 1 )
What is java script?
Answer: JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications.
It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites
Question No: 29 ( Marks: 2 )
How can you explain control unit?
Answer: Control unit is a computerized part of the speech processor. Most of the controls, such as program, volume and sensitivity, are located on the control unit.
Question No: 30 ( Marks: 3 )
How a designer makes Structured Design?
Answer: Structured Design: Materials and member type, size, and configuration to carry loads in a safe and serviceable fashion.
In general, structural design implies the engineering of stationary objects such as buildings and bridges, or objects that may be mobile but have a rigid shape such as ship hulls and aircraft frames tructural design involves at least five distinct phases of work, project requirements, materials, structural scheme, analysis, and design
It is insufficient in most cases, for the designer to consider a solution, a design. He should evaluate several alternate designs and choose the best in the sense of maximizing such technical objectives as efficiency, reliability, and maintainability while satisfying such design constraints as memory size and response time.
Question No: 31 ( Marks: 5 )
What is Turing machine? Who invented it and also explain how a Turing test is conducted?
Answer: A Turing machine is a theoretical device that manipulates symbols contained on a strip of tape. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside of a computer. The "Turing" machine was designed by Alan Turing in 1937.
The Turing test is a proposal for a test of a machine's ability to demonstrate intelligence. It proceeds as follows a human judge engages in a natural language conversation with one human and one machine, each of which tries to appear human. All participants are placed in isolated locations. If the judge cannot reliably tell the machine from the human, the machine is said to have passed the test. In order to test the machine's intelligence rather than its ability to render words into audio, the conversation is limited to a text-only channel such as a computer keyboard and screen.
If a computer pass the test ,we can say that a machine can think.
Question No: 32 ( Marks: 5 )
What are JavaScript literal and what are its types?
Answer: The raw data that make up the root of data types are called "literals." These are, in effect, literally what they represent themselves to be. Numbers, strings, and Boolean values make up the core set of literals in JavaScript. Little mystery exists with literals, but important differences exist between them. In JavaScript, data types include strings, which are simply quoted characters, numbers, Boolean, Objects and even a type which has no value at all, Null. Since JavaScript is a loosely typed language, you don't neccessarily need to know what type of data every value is (although it certainly helps).
Every piece of data in these categories is known as a value. When a value is referred to outright in a statement, it is called a literal value. For the same reason people are identified by names as opposed to "human" or "person", literal values can be named in order to make repeated reference to them practical, efficent and readable. These names are called variables.
Literals can be of several types. Some of them are:
Array Literals
Boolean Literals
Floating-Point Literals
Integers
Object Literals
String Literals
Question No: 27 ( Marks: 1 )
Define URL
URL(Uniform resource locator)
URL (Uniform Resource Locator, previously Universal Resource Locator) - is the address of a file (resource) accessible on the Internet. The type of file or resource depends on the Internet application protocol.
Question No: 31 ( Marks: 1 )
What does TCP/IP stand for?
Transmission Control Protocol
Question No: 32 ( Marks: 1 )
Why there is a need to use primary key in database ?
Primary Key is a field that uniquely identifies each record stored in a table
Question No: 33 ( Marks: 2 )
What is image processing ?
Image Processing:
A branch of computer science concerned with manipulating and enhancing computer
graphics
Question No: 34 ( Marks: 2 )
Define testing with respect to programming..
Testing: The tasks performed to determine the existence of defects
Question No: 35 ( Marks: 3 )
How can we define a computer screen?
Question No: 36 ( Marks: 3 )
What is difference between Design and System Architecture?
System
A collection of elements which working together produces a result not achieved by
the things alone
System Architecture
The structure
(in terms of components, connections, constraints) of a product or a process
Question No: 37 ( Marks: 3 )
Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output.
a = 236.2363611111556;
b = a.toString( ) ;
decimalPos = b.indexOf( ".", 0 ) ;
c = b.substring( 0, decimalPos + 3 ) ;
document.write( c ) ;
Question No: 38 ( Marks: 5 )
Show output of the following code:
for (i=0; i<=10; i++)
{
document.write("The number is " + i);
document.write("<br />");
}
Question No: 39 ( Marks: 5 )
What is a Relational Database? Give the names of any three RDBMS software. (2+3)
Relational Databases
• Databases consisting of two or more related tables are called relational databases
• A typical relational database may have anywhere from 10 to over a thousand tables
• Each column of those tables can contain only a single type of data (contrast this
with spreadsheet columns!)
• Table rows are called records; row elements are called fields
• A relational database stores all its data inside tables, and nowhere else
• All operations on data are done on those tables or those that are generated by table
operations
• Tables, tables, and nothing but tables!
RDBMS
• Relational DBMS software
• Contains facilities for creating, populating, modifying, and querying relational
databases
• Examples:
–Access
–FileMaker Pro
–SQL Server
–Oracle
Question No: 40 ( Marks: 10 )
Define the following terms.
* Object
* Event Handler
* Local Variable
* Scope of Variable
* Array
Object
A named collection of properties(data, state) & methods (instructions, behavior)
Event Handler
An event handler is a command which calls a function when an event happens, such as the user clicking a button
Local Variable
Declaring variables (using the var keyword) within a function, makes them local•They are available only
within the function and hold no meaning outside of it
Scope of Variable
Defining the space in which a variable is effective is known as
defining the scope of a variable. A variable can be either local or global in scope
Array
Question No: 27 ( Marks: 1 )
What is the Brute Force Strategy?
Answer:. A staretegy in which all possible combinations are examined and best among them is selected. Brute force (also known as brute force cracking) is a trial and error method used by application programs to decode encrypted data such as passwords or Data Encryption Standard (DES) keys, through exhaustive effort (using brute force) rather than employing intellectual strategies.
Question No: 28 ( Marks: 1 )
What is java script?
Answer: JavaScript is an object-oriented scripting language used to enable programmatic access to objects within both the client application and other applications.
It is primarily used in the form of client-side JavaScript, implemented as an integrated component of the web browser, allowing the development of enhanced user interfaces and dynamic websites
Question No: 29 ( Marks: 2 )
How can you explain control unit?
Answer: Control unit is a computerized part of the speech processor. Most of the controls, such as program, volume and sensitivity, are located on the control unit.
Question No: 30 ( Marks: 3 )
How a designer makes Structured Design?
Answer: Structured Design: Materials and member type, size, and configuration to carry loads in a safe and serviceable fashion.
In general, structural design implies the engineering of stationary objects such as buildings and bridges, or objects that may be mobile but have a rigid shape such as ship hulls and aircraft frames tructural design involves at least five distinct phases of work, project requirements, materials, structural scheme, analysis, and design
It is insufficient in most cases, for the designer to consider a solution, a design. He should evaluate several alternate designs and choose the best in the sense of maximizing such technical objectives as efficiency, reliability, and maintainability while satisfying such design constraints as memory size and response time.
Question No: 31 ( Marks: 5 )
What is Turing machine? Who invented it and also explain how a Turing test is conducted?
Answer: A Turing machine is a theoretical device that manipulates symbols contained on a strip of tape. Despite its simplicity, a Turing machine can be adapted to simulate the logic of any computer algorithm, and is particularly useful in explaining the functions of a CPU inside of a computer. The "Turing" machine was designed by Alan Turing in 1937.
The Turing test is a proposal for a test of a machine's ability to demonstrate intelligence. It proceeds as follows a human judge engages in a natural language conversation with one human and one machine, each of which tries to appear human. All participants are placed in isolated locations. If the judge cannot reliably tell the machine from the human, the machine is said to have passed the test. In order to test the machine's intelligence rather than its ability to render words into audio, the conversation is limited to a text-only channel such as a computer keyboard and screen.
If a computer pass the test ,we can say that a machine can think.
Question No: 32 ( Marks: 5 )
What are JavaScript literal and what are its types?
Answer: The raw data that make up the root of data types are called "literals." These are, in effect, literally what they represent themselves to be. Numbers, strings, and Boolean values make up the core set of literals in JavaScript. Little mystery exists with literals, but important differences exist between them. In JavaScript, data types include strings, which are simply quoted characters, numbers, Boolean, Objects and even a type which has no value at all, Null. Since JavaScript is a loosely typed language, you don't neccessarily need to know what type of data every value is (although it certainly helps).
Every piece of data in these categories is known as a value. When a value is referred to outright in a statement, it is called a literal value. For the same reason people are identified by names as opposed to "human" or "person", literal values can be named in order to make repeated reference to them practical, efficent and readable. These names are called variables.
Literals can be of several types. Some of them are:
Array Literals
Boolean Literals
Floating-Point Literals
Integers
Object Literals
String Literals
Question No: 27 ( Marks: 1 )
Define URL
URL(Uniform resource locator)
URL (Uniform Resource Locator, previously Universal Resource Locator) - is the address of a file (resource) accessible on the Internet. The type of file or resource depends on the Internet application protocol.
0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
