الجمعة، 23 أغسطس 2013


Now a days most of the websites or blogs are using image slideshow or animation on their pages using JavaScript codes. Such image animations make websites more attractive looking and smart. Here I have placed codes for creating a simple JavaScript fade effect animation. It may help you a lot.

Code for Creating Simple JavaScript Fade Effect Animation


Just copy and paste the code below where you want to place slideshow and change the location of the images.

<script type="text/javascript" 
src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?
load=effects"></script>

<script type="text/javascript">

function ShowEffect(element){
new Effect.Appear(element,
{duration:1, from:0, to:1.0});
}
function FadeEffect(element){
new Effect.Fade(element,
{duration:1, from:1.0, to:0});
}

var i = 0;
var path = new Array();

// LIST OF IMAGES
path[0] = "/image_1.gif";
path[1] = "/image_2.gif";
path[2] = "/image_3.gif";

function swapImage_0()
{
document.slide.src = path[i];
if(i < path.length - 1) i++; else i = 0;

setTimeout("FadeEffect('hideshow')",4000);

setTimeout("ShowEffect('hideshow')",5000);

setTimeout("swapImage_0()",5000);


}
window.onload=swapImage_0;

</script>

<div id="hideshow">

<img height="200" name="slide" src="/image_1.gif" width="400" />

</div>



You Might also view the following Related Posts

    How to Create Simple JavaScript Fade Effect Animation?

    Posted at  2:47 ص - by mego almasry 0


    Now a days most of the websites or blogs are using image slideshow or animation on their pages using JavaScript codes. Such image animations make websites more attractive looking and smart. Here I have placed codes for creating a simple JavaScript fade effect animation. It may help you a lot.

    Code for Creating Simple JavaScript Fade Effect Animation


    Just copy and paste the code below where you want to place slideshow and change the location of the images.

    <script type="text/javascript" 
    src="https://ajax.googleapis.com/ajax/libs/prototype/1.7.1.0/prototype.js"></script>
    <script type="text/javascript"
    src="https://ajax.googleapis.com/ajax/libs/scriptaculous/1.9.0/scriptaculous.js?
    load=effects"></script>

    <script type="text/javascript">

    function ShowEffect(element){
    new Effect.Appear(element,
    {duration:1, from:0, to:1.0});
    }
    function FadeEffect(element){
    new Effect.Fade(element,
    {duration:1, from:1.0, to:0});
    }

    var i = 0;
    var path = new Array();

    // LIST OF IMAGES
    path[0] = "/image_1.gif";
    path[1] = "/image_2.gif";
    path[2] = "/image_3.gif";

    function swapImage_0()
    {
    document.slide.src = path[i];
    if(i < path.length - 1) i++; else i = 0;

    setTimeout("FadeEffect('hideshow')",4000);

    setTimeout("ShowEffect('hideshow')",5000);

    setTimeout("swapImage_0()",5000);


    }
    window.onload=swapImage_0;

    </script>

    <div id="hideshow">

    <img height="200" name="slide" src="/image_1.gif" width="400" />

    </div>



    You Might also view the following Related Posts

      الخميس، 22 أغسطس 2013


      1. You can redirect the webpage in JavaScript by using ..................... method.

      A) window. reload

      B) window.location

      C) page.location

      D) url.newlocation



      2. ....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.

      A) Timeout( )

      B) TimeInterval( )

      C) setTimeout ( )

      D) All of the above



      3. You can refresh the webpage in JavaScript by using ................ method.

      A) window.reload

      B) location. reload

      C) window. refresh

      D) page.refresh



      4. The different types of dialog boxes supported by JavaScript are
      Titel WikiBook JavaScript
      Titel WikiBook JavaScript (Photo credit: Wikipedia)

      i) Alert dialog box

      ii) Information dialog box

      iii) Conformation dialog box

      iv) Prompt dialog box

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      5. A ..................... mostly used to take users choice on any option and displays a dialog box with two buttons Ok and Cancel.

      A) Alert dialog box

      B) Information dialog box

      C) Prompt dialog box

      D) Conformation dialog box



      6. Match the following with their description.

      a) Encapsulation     i) The capability to write on function or method that works variety of different ways.

      b) Aggregation       ii) The capability of a class to relay upon another class.

      c) Inheritance         iii) The capability to store one object inside of another object.

      d) Polymorphism    iv) The capability to store related information.

      A) i-d, ii-c, iii-b, iv-a

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-a, iv-b

      D) i-a, ii-c, iii-d, iv-b



      7. ...................... are usually variables that are used internally in the objects methods, but can also be globally visible variables that are used through the page.

      A) Object properties

      B) Variable properties

      C) Method properties

      D) Internal properties



      8. State True or False.

      i) We can refresh a web page using JavaScript location.reload method.

      ii) The function page.print( ) will print the current web page.

      iii) With no arguments, the Date( ) constructor creates a Date object set to the current date and time.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      9. The JavaScript ........................ class represents regular expressions, and both string and .................... define methods that use regular expressions.

      A) RegExpObj

      B) RegExpClass

      C) RegExp

      D) StringExp



      10. The different variant of Date( ) constructor to create date object is/are.

      i) new Date(date)

      ii) new Date(milliseconds)

      iii) new Date(date string)

      iv) new Date (year, month, date [, hour, minute, second, millisecond])

      A) i, ii and iii only

      B) ii, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      Answers:

      1.   B) window.location
      2.   C) setTimeout ( )
      3.   B) location. reload
      4.   B) i, iii and iv only
      5.   D) Conformation dialog box
      6.   A) i-d, ii-c, iii-b, iv-a
      7.   B) Variable properties
      8.   A) i- True, ii- False, iii-True
      9.   C) RegExp
      10. B) ii, iii and iv only


      You Might also view the following Related Posts

      MCQ of JavaScript with Answer set-2

      Posted at  11:46 م - by mego almasry 0


      1. You can redirect the webpage in JavaScript by using ..................... method.

      A) window. reload

      B) window.location

      C) page.location

      D) url.newlocation



      2. ....................... is a built - in JavaScript function which can be used to execute another function after a given time interval.

      A) Timeout( )

      B) TimeInterval( )

      C) setTimeout ( )

      D) All of the above



      3. You can refresh the webpage in JavaScript by using ................ method.

      A) window.reload

      B) location. reload

      C) window. refresh

      D) page.refresh



      4. The different types of dialog boxes supported by JavaScript are
      Titel WikiBook JavaScript
      Titel WikiBook JavaScript (Photo credit: Wikipedia)

      i) Alert dialog box

      ii) Information dialog box

      iii) Conformation dialog box

      iv) Prompt dialog box

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      5. A ..................... mostly used to take users choice on any option and displays a dialog box with two buttons Ok and Cancel.

      A) Alert dialog box

      B) Information dialog box

      C) Prompt dialog box

      D) Conformation dialog box



      6. Match the following with their description.

      a) Encapsulation     i) The capability to write on function or method that works variety of different ways.

      b) Aggregation       ii) The capability of a class to relay upon another class.

      c) Inheritance         iii) The capability to store one object inside of another object.

      d) Polymorphism    iv) The capability to store related information.

      A) i-d, ii-c, iii-b, iv-a

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-a, iv-b

      D) i-a, ii-c, iii-d, iv-b



      7. ...................... are usually variables that are used internally in the objects methods, but can also be globally visible variables that are used through the page.

      A) Object properties

      B) Variable properties

      C) Method properties

      D) Internal properties



      8. State True or False.

      i) We can refresh a web page using JavaScript location.reload method.

      ii) The function page.print( ) will print the current web page.

      iii) With no arguments, the Date( ) constructor creates a Date object set to the current date and time.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      9. The JavaScript ........................ class represents regular expressions, and both string and .................... define methods that use regular expressions.

      A) RegExpObj

      B) RegExpClass

      C) RegExp

      D) StringExp



      10. The different variant of Date( ) constructor to create date object is/are.

      i) new Date(date)

      ii) new Date(milliseconds)

      iii) new Date(date string)

      iv) new Date (year, month, date [, hour, minute, second, millisecond])

      A) i, ii and iii only

      B) ii, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      Answers:

      1.   B) window.location
      2.   C) setTimeout ( )
      3.   B) location. reload
      4.   B) i, iii and iv only
      5.   D) Conformation dialog box
      6.   A) i-d, ii-c, iii-b, iv-a
      7.   B) Variable properties
      8.   A) i- True, ii- False, iii-True
      9.   C) RegExp
      10. B) ii, iii and iv only


      You Might also view the following Related Posts

      الأربعاء، 21 أغسطس 2013


      1. Which of the following is NOT an objective of MIS?

      A) Facilitate the decisions-making process

      B) Provide requisite information at each level of management

      C) Support decision-making

      D) recruit people for system



      2. In MIS system design, the sources of information may be categorized as ............... and ...............

      A) internal, external

      B) personal, organizational

      C) useful, unuseful

      D) constructive, destructive



      3. What among the following are the primary characteristics that information must process?
      English: Business Process Reengineering Cycle
      English: Business Process Reengineering Cycle (Photo credit: Wikipedia)


      i) Relevance             ii) Availability


      iii) Timeliness          iv) Accuracy


      A) Only i, ii, and iii

      B) Only ii, iii and iv

      C) Only i, iii and iv

      D) All i, ii, iii, and iv



      4. Which of the following models are developed on the principles of business management, accounting and econometrics?

      A) Behavioral model

      B) Management science models

      C) Operations research models

      D) Policy making models



      5. An ...................... is a set of processes and procedures that transform data into information and knowledge.

      A) information system

      B) Knowledge system

      C) Database system

      D) Computer system



      6. A system is called ..................... when the inputs, process and the outputs are known with certainty.

      A) Probablistics

      B) Deterministic

      C) Open

      D) Close



      7. Which of the following steps is/are the implementation plans involved in MIS?

      i) Preparing organizational plans

      ii) Planning of work flow

      iii) Training of personnel

      iv) Development of software

      v) Acquiring computer hardware

      A) i, ii and iii only

      B) i, ii, iii and iv only

      C) i, ii, iv and v only

      D) All i, ii, iii, iv and v



      8. Which of the following is included in the Office automation systems?

      i) Word processing

      ii) Electronic mail

      iii) Voice mail

      iv) Electronic calendaring

      v) Audio conferencing

      A) i, ii, iii and v only

      B) i, ii, iii and iv only

      C) i, ii, iv and v only

      D) All i, ii, iii, iv and v



      9. In a typical ................ network, application processing is shared between clients and one more servers.

      A) client server computing

      B) cloud computing

      C) mobile computing

      D) data computing



      10. The .................... is defined as a set of activities performed across the organization creating as output of value to the customer.

      A) development process

      B) business process

      C) quality process

      D) customer focus


      Answers:

      1.   D) recruit people for system
      2.   A) internal, external
      3.   A) Only i, ii, and iii
      4.   B) Management science models
      5.   A) information system
      6.   B) Deterministic
      7.   D) All i, ii, iii, iv and v
      8.   D) All i, ii, iii, iv and v
      9.   A) client server computing
      10. B) business process


      You Might also view the following Related Posts

      Solved MCQ of Management Information System set-1

      Posted at  11:55 م - by mego almasry 0


      1. Which of the following is NOT an objective of MIS?

      A) Facilitate the decisions-making process

      B) Provide requisite information at each level of management

      C) Support decision-making

      D) recruit people for system



      2. In MIS system design, the sources of information may be categorized as ............... and ...............

      A) internal, external

      B) personal, organizational

      C) useful, unuseful

      D) constructive, destructive



      3. What among the following are the primary characteristics that information must process?
      English: Business Process Reengineering Cycle
      English: Business Process Reengineering Cycle (Photo credit: Wikipedia)


      i) Relevance             ii) Availability


      iii) Timeliness          iv) Accuracy


      A) Only i, ii, and iii

      B) Only ii, iii and iv

      C) Only i, iii and iv

      D) All i, ii, iii, and iv



      4. Which of the following models are developed on the principles of business management, accounting and econometrics?

      A) Behavioral model

      B) Management science models

      C) Operations research models

      D) Policy making models



      5. An ...................... is a set of processes and procedures that transform data into information and knowledge.

      A) information system

      B) Knowledge system

      C) Database system

      D) Computer system



      6. A system is called ..................... when the inputs, process and the outputs are known with certainty.

      A) Probablistics

      B) Deterministic

      C) Open

      D) Close



      7. Which of the following steps is/are the implementation plans involved in MIS?

      i) Preparing organizational plans

      ii) Planning of work flow

      iii) Training of personnel

      iv) Development of software

      v) Acquiring computer hardware

      A) i, ii and iii only

      B) i, ii, iii and iv only

      C) i, ii, iv and v only

      D) All i, ii, iii, iv and v



      8. Which of the following is included in the Office automation systems?

      i) Word processing

      ii) Electronic mail

      iii) Voice mail

      iv) Electronic calendaring

      v) Audio conferencing

      A) i, ii, iii and v only

      B) i, ii, iii and iv only

      C) i, ii, iv and v only

      D) All i, ii, iii, iv and v



      9. In a typical ................ network, application processing is shared between clients and one more servers.

      A) client server computing

      B) cloud computing

      C) mobile computing

      D) data computing



      10. The .................... is defined as a set of activities performed across the organization creating as output of value to the customer.

      A) development process

      B) business process

      C) quality process

      D) customer focus


      Answers:

      1.   D) recruit people for system
      2.   A) internal, external
      3.   A) Only i, ii, and iii
      4.   B) Management science models
      5.   A) information system
      6.   B) Deterministic
      7.   D) All i, ii, iii, iv and v
      8.   D) All i, ii, iii, iv and v
      9.   A) client server computing
      10. B) business process


      You Might also view the following Related Posts

      السبت، 17 أغسطس 2013


      1. State whether the following statements are True or False.

      i) JavaScript ignores spaces, tabs and newlines that appear in JavaScript program.

      ii) Semicolons are necessary while writing JavaScript statements.

      iii) JavaScript is a case-sensitive language.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      2. Which of the following are the advantages of JavaScript?

      i) Less server interaction

      Titel WikiBook JavaScript
      Titel WikiBook JavaScript (Photo credit: Wikipedia)
      ii) Immediate feedback to visitors

      iii) Reading or writing of files

      iv) Increased interactivity

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      3. Which of the following is NOT an operator used in JavaScript?

      A) Arithmetic Operator

      B) Comparison Operator

      C) Conditional Operator

      D) Static Operator



      4. JavaScript For Loops contains the following important parts.

      i) The loop initialization to start value.

      ii) The test statement to test if the given condition is True or not.

      iii) The iteration statement to increase or decrease counter.

      iv) The end statement to finish the loop.

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      5. In JavaScript, a ............................ is simply an identifier followed by a colon that is applied to a statement or block of code.

      A) bookmark

      B) label

      C) break

      D) continue



      6. A JavaScript function which can be defined dynamically along with the new operator using ..........

      A) Nested Function

      B) Function Literals

      C) Function ( ) Constructor

      D) None of the above



      7. A function literal is an expression that defines unnamed function. The syntax for function literal is ......

      A) var variable name=function (Argument list){Function Body};

      B) variable name=function (Argument list){Function Body};

      C) var variable name =new function(Arg1, Arg2, ......,"function body");

      D) variable name =new function(Arg1, Arg2, ......,"function body");



      8. Match the following JavaScript function with their description.

      i) onblur             a) script runs when element changes

      ii) onmouseup     b) script runs when the form is reset

      iii) onchange       c) script runs when the element lost focus.

      iv) onreset          d) script runs when mouse button is released.

      A) i-d, ii-c, iii-a, iv-b

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-a, iv-b

      D) i-a, ii-c, iii-d, iv-b



      9. Cookies are a plain text data record having the following variable length fields.

      i) Expires                  ii) Starts            iii) Domain             iv) Secure

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      10. While reading Cookies, the ................ string will keep a list of name = value pairs separated by semicolons, where name is the name of a cookie and value is its string value.

      A) document.cookie

      B) read.cookie

      C) cookie.string

      D) name.cookie

      Answers:

      1.   A) i- True, ii- False, iii-True
      2.   C) i, ii and iv only
      3.   D) Static Operator
      4.   A) i, ii and iii  only
      5.   B) label
      6.   C) Function ( ) Constructor
      7.   A) var variable name=function (Argument list){Function Body};
      8.   C) i-c, ii-d, iii-a, iv-b
      9.   C) i, ii and iv only
      10. A) document.cookie


      You Might also view the following Related Posts

      Enhanced by Zemanta

      Solved MCQ of JavaScript set-1

      Posted at  9:45 ص - by mego almasry 0


      1. State whether the following statements are True or False.

      i) JavaScript ignores spaces, tabs and newlines that appear in JavaScript program.

      ii) Semicolons are necessary while writing JavaScript statements.

      iii) JavaScript is a case-sensitive language.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      2. Which of the following are the advantages of JavaScript?

      i) Less server interaction

      Titel WikiBook JavaScript
      Titel WikiBook JavaScript (Photo credit: Wikipedia)
      ii) Immediate feedback to visitors

      iii) Reading or writing of files

      iv) Increased interactivity

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      3. Which of the following is NOT an operator used in JavaScript?

      A) Arithmetic Operator

      B) Comparison Operator

      C) Conditional Operator

      D) Static Operator



      4. JavaScript For Loops contains the following important parts.

      i) The loop initialization to start value.

      ii) The test statement to test if the given condition is True or not.

      iii) The iteration statement to increase or decrease counter.

      iv) The end statement to finish the loop.

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      5. In JavaScript, a ............................ is simply an identifier followed by a colon that is applied to a statement or block of code.

      A) bookmark

      B) label

      C) break

      D) continue



      6. A JavaScript function which can be defined dynamically along with the new operator using ..........

      A) Nested Function

      B) Function Literals

      C) Function ( ) Constructor

      D) None of the above



      7. A function literal is an expression that defines unnamed function. The syntax for function literal is ......

      A) var variable name=function (Argument list){Function Body};

      B) variable name=function (Argument list){Function Body};

      C) var variable name =new function(Arg1, Arg2, ......,"function body");

      D) variable name =new function(Arg1, Arg2, ......,"function body");



      8. Match the following JavaScript function with their description.

      i) onblur             a) script runs when element changes

      ii) onmouseup     b) script runs when the form is reset

      iii) onchange       c) script runs when the element lost focus.

      iv) onreset          d) script runs when mouse button is released.

      A) i-d, ii-c, iii-a, iv-b

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-a, iv-b

      D) i-a, ii-c, iii-d, iv-b



      9. Cookies are a plain text data record having the following variable length fields.

      i) Expires                  ii) Starts            iii) Domain             iv) Secure

      A) i, ii and iii only

      B) i, iii and iv only

      C) i, ii and iv only

      D) All i, ii, iii, and iv



      10. While reading Cookies, the ................ string will keep a list of name = value pairs separated by semicolons, where name is the name of a cookie and value is its string value.

      A) document.cookie

      B) read.cookie

      C) cookie.string

      D) name.cookie

      Answers:

      1.   A) i- True, ii- False, iii-True
      2.   C) i, ii and iv only
      3.   D) Static Operator
      4.   A) i, ii and iii  only
      5.   B) label
      6.   C) Function ( ) Constructor
      7.   A) var variable name=function (Argument list){Function Body};
      8.   C) i-c, ii-d, iii-a, iv-b
      9.   C) i, ii and iv only
      10. A) document.cookie


      You Might also view the following Related Posts

      Enhanced by Zemanta

      الجمعة، 16 أغسطس 2013


      1. An exception condition in a computer system caused by an event external to the CPU is called ........

      A) Interrupt

      B) Halt

      C) Wait

      D) Process



      2. When the CPU detects an interrupt, it then saves its .............

      A) Previous State

      B) Next State

      C) Current State

      D) Both A and B
      English: A photo of three 32-bit PCI slots.
      English: A photo of three 32-bit PCI slots. (Photo credit: Wikipedia)



      3. A microprogram is sequencer perform the operation...

      A) read

      B) write

      C) read and write

      D) read and execute



      4. A computer program that converts an entire program into machine language at one time is called

      A) interpreter

      B) simulator

      C) compiler

      D) commander



      5. The unit which decodes and translates each instruction and generates the necessary enable signals for ALU and other units is called ..

      A) arithmetic unit

      B) logical unit

      C) control unit

      D) CPU



      6. State whether the following statement is True or False for cache memory.

      i) Cache memories are high-speed buffers which are inserted between the processors and main memory.

      ii) They can also be inserted between main memory and mass storage.

      iii) It can be used as secondary memory.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      7. The channel which handles the multiple requests and multiplexes the data transfers from these devices a byte at a time is known as .....

      A) multiplexor channel

      B) the selector channel

      C) block multiplex channel

      D) both A and C



      8. The address mapping is done, when the program is initially loaded is called ......

      A) dynamic relocation

      B) relocation

      C) static relocation

      D) dynamic as well as static relocation



      9. State whether the following statement is True or False for PCI bus.

      i) The PCI bus tuns at 33 MHZ and can transfer 32-bits of data(four bytes) every clock tick.

      ii) The PCI interface chip may support the video adapter, the EIDE disk controller chip and may be two external adapter cards.

      iii) PCI bus deliver the different throughout only on a 32-bit interface that other parts of the machine deliver through a 64-bit path.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      10. The I/O processor has a direct access to ....................... and contains a number of independent data channels.

      A) main memory

      B) secondary memory

      C) cache

      D) flash memory

      Answers:

      1.   A) Interrupt
      2.   C) Current State
      3.   D) read and execute
      4.   C) compiler
      5.   C) control unit
      6.   C) i-True, ii-True, iii-False
      7.   A) multiplexor channel
      8.   C) static relocation
      9.   C) i-True, ii-True, iii-False
      10. A) main memory


      You Might also view the following Related Posts

      MCQ of Computer Organization and Architecture with Answer set-3

      Posted at  10:45 م - by mego almasry 0


      1. An exception condition in a computer system caused by an event external to the CPU is called ........

      A) Interrupt

      B) Halt

      C) Wait

      D) Process



      2. When the CPU detects an interrupt, it then saves its .............

      A) Previous State

      B) Next State

      C) Current State

      D) Both A and B
      English: A photo of three 32-bit PCI slots.
      English: A photo of three 32-bit PCI slots. (Photo credit: Wikipedia)



      3. A microprogram is sequencer perform the operation...

      A) read

      B) write

      C) read and write

      D) read and execute



      4. A computer program that converts an entire program into machine language at one time is called

      A) interpreter

      B) simulator

      C) compiler

      D) commander



      5. The unit which decodes and translates each instruction and generates the necessary enable signals for ALU and other units is called ..

      A) arithmetic unit

      B) logical unit

      C) control unit

      D) CPU



      6. State whether the following statement is True or False for cache memory.

      i) Cache memories are high-speed buffers which are inserted between the processors and main memory.

      ii) They can also be inserted between main memory and mass storage.

      iii) It can be used as secondary memory.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      7. The channel which handles the multiple requests and multiplexes the data transfers from these devices a byte at a time is known as .....

      A) multiplexor channel

      B) the selector channel

      C) block multiplex channel

      D) both A and C



      8. The address mapping is done, when the program is initially loaded is called ......

      A) dynamic relocation

      B) relocation

      C) static relocation

      D) dynamic as well as static relocation



      9. State whether the following statement is True or False for PCI bus.

      i) The PCI bus tuns at 33 MHZ and can transfer 32-bits of data(four bytes) every clock tick.

      ii) The PCI interface chip may support the video adapter, the EIDE disk controller chip and may be two external adapter cards.

      iii) PCI bus deliver the different throughout only on a 32-bit interface that other parts of the machine deliver through a 64-bit path.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True



      10. The I/O processor has a direct access to ....................... and contains a number of independent data channels.

      A) main memory

      B) secondary memory

      C) cache

      D) flash memory

      Answers:

      1.   A) Interrupt
      2.   C) Current State
      3.   D) read and execute
      4.   C) compiler
      5.   C) control unit
      6.   C) i-True, ii-True, iii-False
      7.   A) multiplexor channel
      8.   C) static relocation
      9.   C) i-True, ii-True, iii-False
      10. A) main memory


      You Might also view the following Related Posts

      الخميس، 15 أغسطس 2013

      English: JDBC type 3 driver (Network Protocol ...
      English: JDBC type 3 driver (Network Protocol driver) (Photo credit: Wikipedia)

      1. What is JDBC?

      A) java compiler

      B) Java API

      C) Java interpreter

      D) Both A and B



      2. JDBC is a ..................... interface, which means that it is used to invoke SQL commands directly

      A) low-level

      B) middle-level

      C) higher-level

      D) user



      3. ODBC is not appropriate for direct use from java because it uses a ..............

      A) C interface

      B) C# interface

      C) java interface

      D) Both A and C



      4. Java Soft provides ................. JDBC product components as part of the java Developer's Kit (JDK)

      A) three

      B) two

      C) four

      D) single



      5. Kind of driver converts JDBC calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS is known as

      A) JDBC-Net pure Java driver

      B) JDBC-ODBC Bridge plus ODBC driver

      C) Native-API partly-Java driver

      D) Both A and B



      6. JSP stands for ..........................

      A) Java server Pages

      B) Java server Programming

      C) Java Server Process

      D) Java Socket Programming



      7. JSP includes a mechanism for defining ............................... or custom tags.

      A) static attributes

      B) local attributes

      C) dynamic attributes

      D) global attributes



      8. JSP is not governed by the syntax and semantics defined by the ................... specifications.

      A) Java 2

      B) Java 2.4

      C) Java 1

      D) Java 1.2
       


      9. JSP containers are required to support ..................... different formats of JSP syntax.

      A) Two

      B) Three

      C) Four

      D) Only One



      10. The difference between Servlets and JSP is the ................

      A) translation

      B) compilation

      C) syntax

      D) Both A and B


      Answers:

      1.   B) Java API
      2.   A) low-level
      3.   A) C interface
      4.   A) three
      5.   C) Native-API partly-Java driver
      6.   A) Java server Pages
      7.   C) dynamic attributes
      8.   A) Java 2
      9.   A) Two
      10. C) syntax

      You Might also view the following Related Posts

      Enhanced by Zemanta

      Solved MCQ of JDBC and JSP set-1

      Posted at  11:43 م - by mego almasry 0

      English: JDBC type 3 driver (Network Protocol ...
      English: JDBC type 3 driver (Network Protocol driver) (Photo credit: Wikipedia)

      1. What is JDBC?

      A) java compiler

      B) Java API

      C) Java interpreter

      D) Both A and B



      2. JDBC is a ..................... interface, which means that it is used to invoke SQL commands directly

      A) low-level

      B) middle-level

      C) higher-level

      D) user



      3. ODBC is not appropriate for direct use from java because it uses a ..............

      A) C interface

      B) C# interface

      C) java interface

      D) Both A and C



      4. Java Soft provides ................. JDBC product components as part of the java Developer's Kit (JDK)

      A) three

      B) two

      C) four

      D) single



      5. Kind of driver converts JDBC calls on the client API for Oracle, Sybase, Informix, DB2, or other DBMS is known as

      A) JDBC-Net pure Java driver

      B) JDBC-ODBC Bridge plus ODBC driver

      C) Native-API partly-Java driver

      D) Both A and B



      6. JSP stands for ..........................

      A) Java server Pages

      B) Java server Programming

      C) Java Server Process

      D) Java Socket Programming



      7. JSP includes a mechanism for defining ............................... or custom tags.

      A) static attributes

      B) local attributes

      C) dynamic attributes

      D) global attributes



      8. JSP is not governed by the syntax and semantics defined by the ................... specifications.

      A) Java 2

      B) Java 2.4

      C) Java 1

      D) Java 1.2
       


      9. JSP containers are required to support ..................... different formats of JSP syntax.

      A) Two

      B) Three

      C) Four

      D) Only One



      10. The difference between Servlets and JSP is the ................

      A) translation

      B) compilation

      C) syntax

      D) Both A and B


      Answers:

      1.   B) Java API
      2.   A) low-level
      3.   A) C interface
      4.   A) three
      5.   C) Native-API partly-Java driver
      6.   A) Java server Pages
      7.   C) dynamic attributes
      8.   A) Java 2
      9.   A) Two
      10. C) syntax

      You Might also view the following Related Posts

      Enhanced by Zemanta

      الأربعاء، 14 أغسطس 2013


      MCQs in C#
      MCQs in C#
      1. The general syntax for declaring an enumeration in C# is .

      A) <enum_name> enum {enum list};

      B) enum <enum_name> {enum list};

      C) <enum_type> enum <enum_name> {enum list};

      D) None of the above


      2. State True or False for the difference between classes and structures.

      i) Structures do not support inheritance

      ii) Structure can have default constructor

      iii) Classes are reference types and structures are value types.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True


      3. The various techniques provided by C# to implement static polymorphism is/are

      i) Function overloading

      ii) Static overloading

      iii) Operator overloading

      A) i and ii only

      B) i and iii only

      C)  ii and iii only

      D) All i, ii, iii


      4. Operator overloading is creating functions with special names, the keyword ........................ operator followed by the symbol for the operator being defined.

      A) Overload

      B) Update

      C) Operator

      D) Implement


      5. Match the following operators in C# with their description for the operator overload property.

      i) +, -, !, ~, ++, --            a) cannot be overloaded

      ii) ==, !=, <, >, <=, >=    b) cannot be overloaded directly

      iii) &&, ||                         c) take one operand and can be overloaded

      iv) =, ., ? :, ->                  d) can be overload

      A) i-d, ii-c, iii-a, iv-b

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-b, iv-a

      D) i-a, ii-c, iii-d, iv-b


      6. Match the following preprocessor directives in C# with their description?

      i) #elif                      a) specifies the end of conditional directive

      ii) #endif                   b) allows to undefine a symbol.

      iii) #undef                  c) allows creating compound conditional directive

      A) i-b, ii-c, iii-a

      B) i-b, ii-c, iii-a

      C) i-c, ii-a, iii-b

      D) i-a, ii-c, iii-b


      7. The operator symbols can be used for the conditional directives in C# is/are.

      i) = = (equality)         ii) ! = (inequality)            iii) && (and)

      iv) || (or)                   v) >= (grater than or equal to)

      A) i, ii  iii and iv only

      B) i, iii and iv only

      C) i, ii, iii and v only

      D) All i, ii, iii, iv and v


      8. Conditional directives are beginning with a ...................... directive and must be terminated with ....................... directive and must be terminated with .............. directive.

      A) #if, #endif

      B) #start, #end

      C) #elif, #endelif

      D) Both A and B


      9. The keywords provided by C# for exception handling are.

      i) try             ii) catch             iii) finally             iv) tryif             v) throw

      A) i, ii and iii and iv only

      B) ii, iii and iv and v only

      C) i, ii and iii and v only

      D) All i, ii, iii and iv


      10. The ................... block is used to execute a given set of statement, whether the exception is thrown or not.

      A) try

      B) tryif

      C) finally

      D) throw


      Answers:

      1.   B) enum <enum_name> {enum list};
      2.   A) i- True, ii- False, iii-True
      3.   B) i and iii only
      4.   C) Operator
      5.   C) i-c, ii-d, iii-b, iv-a
      6.   C) i-c, ii-a, iii-b
      7.   A) i, ii and iii and iv only
      8.   A) #if, #endif
      9.   C) i, ii and iii and v only
      10. C) finally


      You Might also view the following Related Posts

      MCQ of C# with Answer set-3

      Posted at  9:42 ص - by mego almasry 0


      MCQs in C#
      MCQs in C#
      1. The general syntax for declaring an enumeration in C# is .

      A) <enum_name> enum {enum list};

      B) enum <enum_name> {enum list};

      C) <enum_type> enum <enum_name> {enum list};

      D) None of the above


      2. State True or False for the difference between classes and structures.

      i) Structures do not support inheritance

      ii) Structure can have default constructor

      iii) Classes are reference types and structures are value types.

      A) i- True, ii- False, iii-True

      B) i- False, ii- True, iii-True

      C) i-True, ii-True, iii-False

      D) i- False, ii- False, iii-True


      3. The various techniques provided by C# to implement static polymorphism is/are

      i) Function overloading

      ii) Static overloading

      iii) Operator overloading

      A) i and ii only

      B) i and iii only

      C)  ii and iii only

      D) All i, ii, iii


      4. Operator overloading is creating functions with special names, the keyword ........................ operator followed by the symbol for the operator being defined.

      A) Overload

      B) Update

      C) Operator

      D) Implement


      5. Match the following operators in C# with their description for the operator overload property.

      i) +, -, !, ~, ++, --            a) cannot be overloaded

      ii) ==, !=, <, >, <=, >=    b) cannot be overloaded directly

      iii) &&, ||                         c) take one operand and can be overloaded

      iv) =, ., ? :, ->                  d) can be overload

      A) i-d, ii-c, iii-a, iv-b

      B) i-b, ii-c, iii-a, iv-d

      C) i-c, ii-d, iii-b, iv-a

      D) i-a, ii-c, iii-d, iv-b


      6. Match the following preprocessor directives in C# with their description?

      i) #elif                      a) specifies the end of conditional directive

      ii) #endif                   b) allows to undefine a symbol.

      iii) #undef                  c) allows creating compound conditional directive

      A) i-b, ii-c, iii-a

      B) i-b, ii-c, iii-a

      C) i-c, ii-a, iii-b

      D) i-a, ii-c, iii-b


      7. The operator symbols can be used for the conditional directives in C# is/are.

      i) = = (equality)         ii) ! = (inequality)            iii) && (and)

      iv) || (or)                   v) >= (grater than or equal to)

      A) i, ii  iii and iv only

      B) i, iii and iv only

      C) i, ii, iii and v only

      D) All i, ii, iii, iv and v


      8. Conditional directives are beginning with a ...................... directive and must be terminated with ....................... directive and must be terminated with .............. directive.

      A) #if, #endif

      B) #start, #end

      C) #elif, #endelif

      D) Both A and B


      9. The keywords provided by C# for exception handling are.

      i) try             ii) catch             iii) finally             iv) tryif             v) throw

      A) i, ii and iii and iv only

      B) ii, iii and iv and v only

      C) i, ii and iii and v only

      D) All i, ii, iii and iv


      10. The ................... block is used to execute a given set of statement, whether the exception is thrown or not.

      A) try

      B) tryif

      C) finally

      D) throw


      Answers:

      1.   B) enum <enum_name> {enum list};
      2.   A) i- True, ii- False, iii-True
      3.   B) i and iii only
      4.   C) Operator
      5.   C) i-c, ii-d, iii-b, iv-a
      6.   C) i-c, ii-a, iii-b
      7.   A) i, ii and iii and iv only
      8.   A) #if, #endif
      9.   C) i, ii and iii and v only
      10. C) finally


      You Might also view the following Related Posts

      Copyright © 2013 hello1. by Bloggertheme9 Powered by Blogger.
      WP Theme-junkie converted by Blogger template