Interview MCQ Questions of Computer Fundamentals set-3


1. Which is special register, which holds machine instructions?

Interview MCQ Questions of Computer FundamentalsA) Control unit

B) RAM

C) Control instruction register

D) None of the above



2. A language used to express algorithms in computer understandable form is

A) Assembly language

B) Low-level language

C) Algorithmic language

D) Programming language



3. Which statement is not valid about computer

A) Can accept data supplied by the user

B) Can process the data

C) Can output the data as result

D) None of the above



4. Central processing Unit is combination of

A) Control and Storage unit

B) Control and Output unit

C) Arithmetic Logic and Input Unit

D) Arithmetic Logic and Control Unit



5. ASCII stands for

A) American Standard Code for Introduction Interchange

B) American Standard Code for Information Interchange

C) American Start Code for Information Interchange

D) American Stop Code for Information Interchange



6. Seek time is

A) Time to position the head over proper track

B) Time to position the head over proper sector

C) Time to position the head over proper cylinder

D) None of the above



7. Who invented the high level language ?

A) Nicklaus Writh

B) VAN-Neuman

C) Dennis M Ritchie

D) Donald Knuth



8. Which American computer company is called big blue?

A) Microsoft

B) Compaq Corporation

C) IBM

D) APPLE



9. OLE means

A) Open Linking and Embedding

B) Object Linking and Embedding

C) Objective Linking and Embedding

D) Open Link and End



10. CMOS stands for

A) Common Metal Oxide Semiconductor

B) Common Mono Oxide Semiconductor

C) Common Metal Oxide Superconductor

D) Complementary Metal Oxide Semiconductor






Answers:




1. Which is special register, which holds machine instructions?

C) Control instruction register

2. A language used to express algorithms in computer understandable form is

A) Assembly language

3. Which statement is not valid about computer

D) None of the above

4. Central processing Unit is combination of

D) Arithmetic Logic and Control Unit

5. ASCII stands for

B) American Standard Code for Information Interchange

6. Seek time is

A) Time to position the head over proper track

7. Who invented the high level language ?

C) Dennis M Ritchie

8. Which American computer company is called big blue?

C) IBM

9. OLE means

B) Object Linking and Embedding

10. CMOS stands for

D) Complementary Metal Oxide Semiconductor


Solved MCQ of Wireless Mobile Communication set-1

Solved MCQ of Wireless Mobile Communication set-1


MCQ of Wireless Mobile Communication
GSM Network Architecture (Photo credit: Wikipedia)
1. Which of the following is/are the main part(s) of basic cellular system.

A) A mobile Unit

B) A cell Site

C) A mobile Telephone Switching Office

D) All of the above



2. Fading of the received radio signals in a mobile communication environment occurs because of .....

A) Direct propagation

B) Multipath Propagation

C) Bi-path Propagation

D) None of the above



3.State whether True of False.

i) The cells or subdivisions of a geographical area are always hexagonal.

ii) A land to Mobile call originates through the Telephone exchange.


A) True, False


B) False, True


C) False, False


D) True, True



4. In .............. Frequency Spectrum is divided into smaller spectra and is allocated to each user.

A) TDMA

B) CDMA

C) FDMA

D) FGMA



5. In ................ multiple access is achieved by allocating different time slots for the different users.

A) TDMA

B) CDMA

C) FDMA

D) FGMA


6. State whether True of False.

i) In GSM only TDMA is used.


ii) There is zero inter-channel interference in CDMA.


A) True, False


B) False, True


C) False, False


D) True, True




7. The basic GSM is based on ____________________ traffic channels.

A) connection oriented.

B) connection less.

C) packet switching.

D) circuit switching.



8. ..................... are typically characterized by very small cells, especially in densely populated areas.

A) 2G system.

B) 3G system.

C) 2.5G system.

D) 3.5G system.



9. A antenna which attempts to direct all its energy in a particular direction is called as a .............

A) Directional Antenna

B) One to One Antenna

C) Propagation Antenna

D) Single Direction Antenna



10. Which mode is used for installing networks in wireless communication device characteristics?

A) Fixed and wired.

B) Mobile and wired.

C) Fixed and wired.

D) Mobile and wireless.





Answers:




1. Which of the following is/are the main part(s) of basic cellular system.

D) All of the above

2. Fading of the received radio signals in a mobile communication environment occurs because of .....

B) Multipath Propagation

3.State whether True of False.

i) The cells or subdivisions of a geographical area are always hexagonal.

ii) A land to Mobile call originates through the Telephone exchange.

B) False, True

4. In .............. Frequency Spectrum is divided into smaller spectra and is allocated to each user.

C) FDMA

5. In ................ multiple access is achieved by allocating different time slots for the different users.

A) TDMA

6. State whether True of False.

i) In GSM only TDMA is used.

ii) There is zero inter-channel interference in CDMA.

C) False, False

7. The basic GSM is based on ____________________ traffic channels.

A) connection oriented.

8. ..................... are typically characterized by very small cells, especially in densely populated areas.

C) 2.5G system.

9. A antenna which attempts to direct all its energy in a particular direction is called as a .............

A) Directional Antenna

10. Which mode is used for installing networks in wireless communication device characteristics?

C) Fixed and wired.



Related Posts



Computer Organization and Architecture Objective Questions set-5

Computer Organization and Architecture Objective Questions set-5


1. Memory unit that communicates directly with the CPU is called the ...............

A) Main memory
Computer Organization and Architecture
RISC (Photo credit: Wikipedia)

B) Secondary memory

C) Auxiliary memory

D) Register



2. CISC stands for ................

A) Common Instruction Set Computers

B) Complex Instruction Set Compilers

C) Complex Instruction Set Computers

D) Compound Instruction Set Computers



3. The communication between central system and the outside environment is done by

A) Input-output subsystem

B) Control system

C) Memory system

D) Logic system



4. The register that keeps track of the instructions in the program stored in memory is ..

A) Control register

B) Program counter

C) Status register

D) Direct register



5. ................ is a small very speed register file maintained by the instruction fetch segment of the pipeline.

A) Branch Target Buffer

B) Loop buffer

C) Branch loop buffer

D) Target register



6. In case of only one memory operand, when a second operand is needed, as in the case of an Add instruction, we use processor register called .........

A) accumulator

B) register

C) operand

D) source



7. Data transfer between the main memory and the CPU register takes place through two registers namely .......

A) general purpose register and MDR

B) accumulator and program counter

C) MAR and MDR

D) MAR and Accumulator



8. The pipeline operates on a stream of instruction by overlapping the phases of instruction cycle is ........

A) Arithmetic pipeline

B) Instruction pipeline

C) Parallel pipeline

D) Multiple pipeline



9. The instruction that cause transfer of data from one location to another without changing the binary information content are ...

A) Data transfer instruction

B) Data manipulation instruction

C) Register transfer instruction

D) Program control instruction



10. The branch logic that provides decision making capabilities in the control unit is known as ..

A) Controlled transfer

B) Conditional transfer

C) Unconditional transfer

D) None of above




Answers:



1. Memory unit that communicates directly with the CPU is called the ...............

A) Main memory

2. CISC stands for ................

C) Complex Instruction Set Computers

3. The communication between central system and the outside environment is done by

A) Input-output subsystem

4. The register that keeps track of the instructions in the program stored in memory is ..

B) Program counter

5. ................ is a small very speed register file maintained by the instruction fetch segment of the pipeline.

B) Loop buffer

6. In case of only one memory operand, when a second operand is needed, as in the case of an Add instruction, we use processor register called .........

A) accumulator

7. Data transfer between the main memory and the CPU register takes place through two registers namely .......

C) MAR and MDR

8. The pipeline operates on a stream of instruction by overlapping the phases of instruction cycle is ........

B) Instruction pipeline

9. The instruction that cause transfer of data from one location to another without changing the binary information content are ...

A) Data transfer instruction

10. The branch logic that provides decision making capabilities in the control unit is known as ..

C) Unconditional transfer




Related Posts




For other more Multiple Choice Questions (MCQs): Click Here

Computer Organization and Architecture Interview Questions set-4

Computer Organization and Architecture Interview Questions set-4


1. The computer code for the interchange of information between terminal is ..

A) ASCII
Computer Organization and Architecture Interview Questions
Example of how to construct a NAND gate from NOR gates (Photo credit: Wikipedia)

B) BCD

C) EBCDIC

D) All of the above



2. SIMD stands for ....

A) Single Instruction Stream Over Multiple Data Streams

B) Single Instruction Stream Over Minimum Data Streams

C) Single Instruction Stream Over Media Data Streams

D) Multiple Instruction Streams and Single Data Stream



3. The NOR gate is complement of ..

A) AND gate

B) OR gate

C) NAND gate

D) NOT gate



4. A .............. is a digital circuit that performs the inverse operation of decodes.

A) multiplexer

B) adder

C) subtractor

D) encoder



5. Pipelining increases the CPU instruction ..........

A) efficiency

B) latency

C) throughput

D) Both a and c




6. The ............... is a program whose function is to start the computer software operating when power is turned on.

A) Bootstrap loader

B) Multi programming

C) Loader

D) None of the above



7. .................. is concerned with the way the hardware components operate to form computer system.

A) Computer organization

B) Computer design

C) Computer architecture

D) Computer implementation



8. Devices that are used primarily to transport data between the processor and the user are known as ....

A) Networking devices

B) Basic storage devices

C) Data presentation device

D) Data transfer device



9. Which statement is valid about computer program?

A) It is understood by a computer

B) It is understood by programmer

C) It is understood to use

D) All of the above



10. Access time is

A) Time to position the head over proper track

B) Time to position the head over proper sector

C) Time to position the head over proper cylinder

D) None of above





Answers:



1. The computer code for the interchange of information between terminal is ..

A) ASCII

2. SIMD stands for ....

A) Single Instruction Stream Over Multiple Data Streams


3. The NOR gate is complement of ..

B) OR gate

4. A .............. is a digital circuit that performs the inverse operation of decodes.

D) encoder

5. Pipelining increases the CPU instruction ..........

C) throughput

6. The ............... is a program whose function is to start the computer software operating when power is turned on.

A) Bootstrap loader

7. .................. is concerned with the way the hardware components operate to form computer system.

A) Computer organization

8. Devices that are used primarily to transport data between the processor and the user are known as ....

C) Data presentation device

9. Which statement is valid about computer program?

D) All of the above

10. Access time is

A) Time to position the head over proper track



Related Posts



For other more Multiple Choice Questions (MCQs): Click Here

Java MCQ Interview Questions With Answers set-10

Java MCQ Interview Questions With Answers set-10


1. Java was developed by the company

A) Sun Micro systems
Image representing Sun Microsystems as depicte...
Sun Micro systems Image CrunchBase

B) Microsoft

C) Micro tech

D) IBM



2. What is the file extension of compiled java program?

A) .class

B) .java

C) .css

D) .html



3. .................. keyword is used to invoke the current object.

A) New

B) That

C) This

D) Me



4. Which of the function is used to convert string to Number in java program?

A) to Number()

B) conString()

C) valueOf()

D) toString()


5. What are the part in executing a Java program and their purposes?

A) Java Compiler

B) Java Interpreter

C) Java Pre-processor

D) Directive Pre-processor


6. Method overloading is one of the way that Java supports ............

A) encapsulation

B) class

C) inheritence

D) polymorphism


7. Java support RMI. What does this RMI stands for?

A) Random Memory Interface

B) Remote Method Invocation

C) Random Method Invocation

D) Remote Memory Interface


8. Which of the following represent legal flow control statements?

A) break;

B) break();

C) continue(inner);

D) exit();


9. The keywords reserved but used in the initial version of Java are

A) union

B) const

C) inner

D) goto


10. What is the default return type of main() ..

A) void

B) double

C) float

D) int



Answers:



1. Java was developed by the company

A) Sun Micro systems

2. What is the file extension of compiled java program?

A) .class

3. .................. keyword is used to invoke the current object.

C) This

4. Which of the function is used to convert string to Number in java program?

C) valueOf()

5. What are the part in executing a Java program and their purposes?

A) Java Compiler

6. Method overloading is one of the way that Java supports ............

D) polymorphism

7. Java support RMI. What does this RMI stands for?

B) Remote Method Invocation

8. Which of the following represent legal flow control statements?

A) break;

9. The keywords reserved but used in the initial version of Java are

A) union

10. What is the default return type of main() ..

D) int


Related Posts


Java Objective Questions with Answers set-9

Java Objective Questions with Answers set-9


1. In java a ....................... is a sequence of characters.

Java Objective Questions with Answers
Schema of the general architecture of a program running in a Java Virtual Machine (Photo credit: Wikipedia)

A) string

B) arrayChar

C) groupChar

D) collection



2. Java programs perform I/O through ...........

A) I/O methods

B) I/O package

C) streams

D) compiler



3. What is byte code in the context of Java?

A) The type of code generated by a Java compiler

B) The type of code generated by a Java Virtual Machine

C) It is another name for Java source file

D) It is the code written within the instance methods of a class



4. Which of the following statements about abstract methods/classes in Java is true?

A) An abstract class cannot be instantiated.

B) Constructors can be abstract.

C) A subclass of an abstract class must defined the abstract methods.

D) Static methods may be declared abstract.



5. Which of the following statement is false?

A) The sleep() method should be enclosed in try ......... catch block

B) The yield() method should be enclosed in try ......... catch block.

C) A thread can be temporarily suspended from running by using the wait() method.

D) A suspended thread using suspend() method can be revived using the resume() method.



6. The new operator dynamically allocates ..............for an object and returns a reference to it.

A) classes

B) variables

C) memory

D) none of the above



7. Which of the following statements correctly describes an interface?

A) It's a concrete class

B) It's a super class

C) It's a type of abstract class

D) It's a subclass



8. What is the priority of the Garbage collector thread of jdk?

A) Low Priority

B) Highest Priority

C) Medium Priority

D) Decided at run time



9. ................ is a feature that allows one interface to be used for a general class of actions.

A) Class

B) Inheritance

C) Polymorphism

D) Interface



10. The default package that is implicitly called in a java program is .............

A) java.Lang

B) java.System

C) java.Window

D) java.Lang.System



Answers:



1. In java a ....................... is a sequence of characters.

B) arrayChar

2. Java programs perform I/O through ...........

C) streams

3. What is byte code in the context of Java?

A) The type of code generated by a Java compiler

4. Which of the following statements about abstract methods/classes in Java is true?

A) An abstract class cannot be instantiated.

5. Which of the following statement is false?

B) The yield() method should be enclosed in try ......... catch block.

6. The new operator dynamically allocates ..............for an object and returns a reference to it.

C) memory

7. Which of the following statements correctly describes an interface?

C) It's a type of abstract class

8. What is the priority of the Garbage collector thread of jdk?

A) Low Priority

9. ................ is a feature that allows one interface to be used for a general class of actions.

C) Polymorphism

10. The default package that is implicitly called in a java program is .............

A) java.Lang



Related Posts


SQL Interview Multiple Choice Questions and Answers set-4

SQL Interview Multiple Choice Questions and Answers set-4


1. In SQL, which command is used to issue multiple CREATE TABLE, CREATE VIEW and GRANT statements in a single transaction?
SQL Interview Multiple Choice Questions
SQL database icon with shortcut identification (Photo credit: Wikipedia)


A) CREATE PACKAGE

B) CREATE SCHEMA

C) CREATE CLUSTER

A) All of the above



2. In SQL, the CREATE TABLESPACE is used

A) to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.

B) to create a database trigger.

C) to add/rename data files, to change storage

D) All of the above



3. Which character function can be used to return a specified portion of a character string?

A) INSTR

B) SUBSTRING

C) SUBSTR

D) POS


4. Which of the following is TRUE for the System Variable $date$?

A) Can be assigned to a global variable.

B) Can be assigned to any field only during design time.

C) Can be assigned to any variable or field during run time.

D) Can be assigned to a local variable.



5. What are the different events in Triggers?

A) Define, Create

B) Drop, Comment

C) Insert, Update, Delete

D) Select, Commit





6. Which is the subset of SQL commands used to manipulate Oracle Database Structures, including tables?

A) Data Definition Language

B) Data Manipulation Language

C) Data Described Language

D) Data Retrieval Language



7. The SQL statement SELECT SUBSTR('123456789', INSTR('abcabcabc','b'), 4) FROM EMP; prints

A) 6789

B) 2345

C) 1234

D) 456789



8. Which of the following SQL command can be used to modify existing data in a database table?

A) MODIFY

B) UPDATE

C) CHANGE

D) NEW



9. When SQL statements are embedded inside 3GL, we call such a program as ..........

A) nested query

B) nested programming

C) distinct query

D) embedded SQL



10. ................ provides option for entering SQL queries as execution time, rather than at the development stage.

A) PL/SQL

B) SQL*Plus

C) SQL

D) Dynamic SQL


Answers:



1. In SQL, which command is used to issue multiple CREATE TABLE, CREATE VIEW and GRANT statements in a single transaction?

B) CREATE SCHEMA

2. In SQL, the CREATE TABLESPACE is used

A) to create a place in the database for storage of scheme objects, rollback segments, and naming the data files to comprise the tablespace.

3. Which character function can be used to return a specified portion of a character string?

C) SUBSTR

4. Which of the following is TRUE for the System Variable $date$?

B) Can be assigned to any field only during design time.

5. What are the different events in Triggers?

C) Insert, Update, Delete

6. Which is the subset of SQL commands used to manipulate Oracle Database Structures, including tables?

A) Data Definition Language

7. The SQL statement SELECT SUBSTR('123456789', INSTR('abcabcabc','b'), 4) FROM EMP; prints

B) 2345

8. Which of the following SQL command can be used to modify existing data in a database table?

B) UPDATE

9. When SQL statements are embedded inside 3GL, we call such a program as ..........

D) embedded SQL

10. ................ provides option for entering SQL queries as execution time, rather than at the development stage.

D) Dynamic SQL


Related Posts


SQL MCQ Interview Questions With Answers set-3

SQL MCQ Interview Questions With Answers set-3


1. In SQL, which command is used to remove a stored function from the database?
SQL MCQ Interview Questions
Cover of SQL Server magazine (Photo credit: Wikipedia)

A) REMOVE FUNCTION

B) DELETE FUNCTION

C) DROP FUNCTION

D) ERASE FUNCTION



2. In SQL, which command is used to select only one copy of each set of duplicate rows

A) SELECT DISTINCT

B) SELECT UNIQUE

C) SELECT DIFFERENT

D) All of the above



3. Count function in SQL returns the number of

A) Values

B) Distinct values

C) Groups

D) Columns



4. Composite key is made up of ................

A) One column

B) One super key

C) One foreign key

D) Two or more columns



5. What command is used to get back the privileges offered by the GRANT command?

A) Grant

B) Revoke

C) Execute

D) Run




6. Which command displays the SQL command in the SQL buffer, and then executes it?

A) CMD

B) OPEN

C) EXECUTE

D) RUN



7. What is a DATABLOCK?

A) Set of Extents

B) Set of Segments

C) Smallest Database storage unit

D) Set of blocks



8. If two groups are not linked in the data model editor, what is the hierarchy between them?

A) There is no hierarchy between unlinked groups.

B) The group that is right ranks higher than the group that is to right or below it.

C) The group that is above or leftmost ranks higher than the group that is to right or below it.

D) The group that is left ranks higher than the group that is to the right.



9. Which of the following types of triggers can be fired on DDL operations?

A) Instead of Trigger

B) DML Trigger

C) System Trigger

D) DDL Trigger



10. What operator performs pattern matching?

A) IS NULL operator

B) ASSIGNMENT operator

C) LIKE operator

D) NOT operator




Answers:



1. In SQL, which command is used to remove a stored function from the database?

C) DROP FUNCTION

2. In SQL, which command is used to select only one copy of each set of duplicate rows

A) SELECT DISTINCT

3. Count function in SQL returns the number of

A) Values

4. Composite key is made up of ................

D) Two or more columns

5. What command is used to get back the privileges offered by the GRANT command?

B) Revoke

6. Which command displays the SQL command in the SQL buffer, and then executes it?

D) RUN

7. What is a DATABLOCK?

C) Smallest Database storage unit

8. If two groups are not linked in the data model editor, what is the hierarchy between them?

C) The group that is above or leftmost ranks higher than the group that is to right or below it.

9. Which of the following types of triggers can be fired on DDL operations?

C) System Trigger

10. What operator performs pattern matching?

C) LIKE operator


Related Posts


Solved Objective Questions of Database Management System set-9

Solved Objective Questions of Database Management System set-9


1. ............................ is the powerful language for working with RDBMS.

A) Embedded Programs
Objective Questions of Database Management System
Database Management System (Photo credit: Wikipedia)

B) Dynamic Programs

C) Query Language

D) Static Language Programs



2. The file in DBMS is called as .................. in RDBMS.

A) console

B) schema

C) table

D) object



3. In ..................... , we have a strict parent-child relationship only.



B) network databases

C) object oriented databases

D) relational databases



4. Which normal form is considered adequate for relational database design?

A) 2 NF

B) 3 NF

C) 4 NF

D) BCNF



5. What operator tests column for the absence of data?

A) IS NULL operator


C) LIKE operator

D) NOT operator



6. Which is proper subset designed to support views belonging to different classes of users in order to hide or protect information.

A) Schema

B) Sub-schema

C) Non-schema

D) Non-sub schema



7. Which contain information about a file needed by system programs for accessing file records?

A) File blocks

B) File operators

C) File headers

D) None of these



8. A .................... DBMS distributes data processing tasks between the workstation and network server.

A) Network

B) Relational


D) Hierarchical



9. The .................... refers to the way data is organized in and accessible from DBMS.

A) database hierarchy

B) data organization

C) data sharing




10. ................. is a statement that is executed automatically by the system.

A) trigger

B) assertion

C) durability

D) integrity constraint




Answers:


1. ............................ is the powerful language for working with RDBMS.

C) Query Language


2. The file in DBMS is called as .................. in RDBMS.

C) table


3. In ..................... , we have a strict parent-child relationship only.


A) hierarchical databases.


4. Which normal form is considered adequate for relational database design?

B) 3 NF


5. What operator tests column for the absence of data?

A) IS NULL operator


6. Which is proper subset designed to support views belonging to different classes of users in order to hide or protect information.

B) Sub-schema


7. Which contain information about a file needed by system programs for accessing file records?

C) File headers


8. A .................... DBMS distributes data processing tasks between the workstation and network server.

C) Client Server


9. The .................... refers to the way data is organized in and accessible from DBMS.

D) data model


10. ................. is a statement that is executed automatically by the system.

A) trigger




Related Posts

 


For other more Multiple Choice Questions (MCQs): Click Here

How to Create JavaScript Image Slideshow with Links

How to Create JavaScript Image Slideshow with Links


JavaScript Image Slideshow with LInks
 Image Slideshow (Photo credit: Wikipedia)
If you want to place links on the images or captions of the image slideshow using JavaScript codes, you can do it by creating a new array of links along with the array of images and captions and adding some codes on 'swap' function to rotate links with the image and caption rotation in the slideshow. Here  I have written codes for creating JavaScript image slideshow with links, you can use these codes on your website or blog to create attractive image slideshow.

Code for Creating Slideshow with Links on Image


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

<script type="text/javascript"> 
var i = 0;
var image = new Array();
// LIST OF IMAGES
image[0] = "image-1.png";
image[1] = "image-2.png";
image[2] = "image-3.png";
var k = image.length-1;

var caption = new Array();
// LIST OF CAPTIONS
caption[0] = "Caption for the first image";
caption[1] = "Caption for the second image";
caption[2] = "Caption for the third image";

var link= new Array();
// LIST OF LINKS
link[0] = "http://www.siteforinfotech.com/";
link[1] = "http://www.siteforinfotech.com/p/tutorial.html";
link[2] = "http://www.siteforinfotech.com/p/mcqs.html";


function swapImage(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img = document.getElementById("slide");
img.src= image[i];
var a = document.getElementById("link");
a.href= link[i];

if(i < k ) { i++;}
else { i = 0; }
setTimeout("swapImage()",5000);
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
swapImage();
});
</script>
<table style="border:none;background-color:transparent;">
<tr>
<td>
<a name="link" id="link" href="http://www.siteforinfotech.com/" target="_blank"><img name="slide" id="slide" alt

="my images" height="285" width="485" src="image-1.png"/></a>
</td>
</tr>
<tr>
<td align="center"style="font:small-caps bold 15px georgia; color:blue;">
<div id ="mydiv"></div>
</td>
</tr>
</table>

Code for Creating Slideshow with Links on Caption


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

<script type="text/javascript"> 
var i = 0;
var image = new Array();
// LIST OF IMAGES
image[0] = "image-1.png";
image[1] = "image-2.png";
image[2] = "image-3.png";
var k = image.length-1;

var caption = new Array();
// LIST OF CAPTIONS
caption[0] = "Caption for the first image";
caption[1] = "Caption for the second image";
caption[2] = "Caption for the third image";

var link= new Array();
// LIST OF LINKS
link[0] = "http://www.siteforinfotech.com/";
link[1] = "http://www.siteforinfotech.com/p/tutorial.html";
link[2] = "http://www.siteforinfotech.com/p/mcqs.html";


function swapImage(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img = document.getElementById("slide");
img.src= image[i];
var a = document.getElementById("link");
a.href= link[i];

if(i < k ) { i++;}
else { i = 0; }
setTimeout("swapImage()",5000);
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
swapImage();
});
</script>
<table style="border:none;background-color:transparent;">
<tr>
<td>
<img name="slide" id="slide" alt ="my images" height="285" width="485" src="image-1.png"/>
</td>
</tr>
<tr>
<td align="center"style="font:small-caps bold 15px georgia; color:blue;">
<a name="link" id="link" href="http://www.siteforinfotech.com/" target="_blank"><div id

="mydiv"></div></a>
</td>
</tr>
</table>


You Might also view the following Related Posts
Image Slideshow with Navigation Buttons Using Javascript

Image Slideshow with Navigation Buttons Using Javascript


A simple JavaScript code snippet from Bluefish...
A simple JavaScript code (Photo credit: Wikipedia)

I have already posted JavaScript codes for simple image slideshows without caption, with caption and Jquery fade effect animation. As some of our visitors asked how to add a next button to the slide, I have posted this JavaScript code for creating image slideshow with Navigation Buttons. It may help more for creating awesome image animations for your website or blog.

Code for Creating Image Slideshow with Navigation Buttons 


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

<script type="text/javascript"> 
var i = 0;
var image = new Array();
// LIST OF IMAGES
image[0] = "image-1.png";
image[1] = "image-2.png";
image[2] = "image-3.png";
var k = image.length-1;
var caption = new Array();

// LIST OF CAPTIONS
caption[0] = "Caption for the first image";
caption[1] = "Caption for the second image";
caption[2] = "Caption for the third image";

function next(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img= document.getElementById("slide");
img.src= image[i];
if(i < k ) { i++;}
else { i = 0; }
}

function prev(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img= document.getElementById("slide");
img.src= image[i];
if(i >0 ) { i--;}
else { i = k; }
}

function swapImage(){
var el = document.getElementById("mydiv");
el.innerHTML=caption[i];
var img= document.getElementById("slide");
img.src= image[i];
if(i < k ) { i++;}
else { i = 0; }
setTimeout("swapImage()",5000);
}
function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
if (oldonload) {
oldonload();
}
func();
}
}
}
addLoadEvent(function() {
swapImage();
});
</script>
<table style="border:none;background-color:transparent;">
<tr>
<td>
<img onclick="prev()" title="Previous" alt ="Prev" height="25" width="15"src="prev.jpg"/>
</td>
<td>
<img name="slide" id="slide" alt ="my images" height="285" width="485" src="image-1.png"/>
</td>
<td>
<img onclick="next()" title="Next" alt ="Next" height="25" width="15" src="next.jpg"/>
</td>
</tr>
<tr>
<td>
</td>
<td align="center"style="font:small-caps bold 15px georgia; color:blue;">
<div id ="mydiv"></div>
</td>
<td>
</td>
</tr>
</table>


You Might also view the following Related Posts
Solved Objective Questions on Operating System set-8

Solved Objective Questions on Operating System set-8


1. A small program which loads OS into the memory is called as ...........
Objective Questions on Operating System
System management components (Photo credit: Wikipedia)

A) ROM

B) bootstrap loader

C) BIOS

D) RAM



2. Virtual memory is ..............

A) Simple to implement

B) Used by all major commercial OS

C) Less efficient memory utilization

D) Less effective



3. A special purpose register that is set to the highest address occupied by the OS code is ...........

A) fence register

B) general purpose register

C) protection register

D) control register



4. As OS program module that selects the next job to be admitted for execution is called as .....

A) scheduler

B) compiler

C) throughput

D) dispatcher





5. Multiprogramming systems .................

A) are easier to develop than single programming systems.

B) execute each job faster

C) execute more jobs in the same time.

D) are used only on large main frame computers



6. SSTF stands for ........................

A) Small seek Time First

B) Simple Seek Time First

C) Shortest Seek Time First

D) Synchronous Seek Time First



7. The program is known as .................. which interacts with the inner part of called kernel.

A) compiler

B) device driver

C) protocol

D) shell



8. Semaphore can be used for solving ............

A) wait & signal

B) deadlock

C) synchronization

D) priority



9. The number of processes completed per unit time is known as ............

A) output

B) throughput

C) efficiency

D) capacity



10. On what principle does Distributed OS work?

A) File foundation

B) Single system image

C) Multi system image

D) Networking image


Answers:



1. A small program which loads OS into the memory is called as ...........

B) bootstrap loader

2. Virtual memory is ..............

B) Used by all major commercial OS

3. A special purpose register that is set to the highest address occupied by the OS code is ...........

A) fence register

4. As OS program module that selects the next job to be admitted for execution is called as .....

A) scheduler

5. Multiprogramming systems .................

C) execute more jobs in the same time.

6. SSTF stands for ........................

C) Shortest Seek Time First

7. The program is known as .................. which interacts with the inner part of called kernel.

D) shell

8. Semaphore can be used for solving ............

C) synchronization

9. The number of processes completed per unit time is known as ............

B) throughput

10. On what principle does Distributed OS work?

B) Single system image



Related Posts:


Solved MCQ Questions on Operating System set-7

Solved MCQ Questions on Operating System set-7


1. Operating System means ........................

A) a set of programs which controls computer working.

MCQ Questions on Operating System
Operating System (Photo credit: Wikipedia)
B) a way of computer drives works

C) a set of devices and programs

D) All of the above



2. The basic types of OS are ...................

A) batch and time sharing

B) sequential and real time

C) direct and interactive

D) batch and interactive



3. The simplest way of deadlock is to ...

A) preempt a resource

B) rollback

C) kill one of the processes

D) lock one of the processes



4. Throughput of a system is

A) Number of programs processed by it per unit time

B) Number of times the program is invoked by the system

C) Number of requests made to a program by the system

D) None of the above



5. Which of the following is not OS layer?

A) Kernel

B) Shell

C) Application Programs

D) Critical Section



6. Round robin scheduling is essentially the preemptive version of ...........

A) first in first out

B) shortest job first

C) shortest remaining

D) longest time first



7. The process that are residing in the main memory and are waiting to execute are kept on a list called the ............

A) job queue

B) ready queue

C) wait queue

D) device queue



8. Which of the following describes the ability of an OS to support multiple, concurrent paths of execution within a single process?

A) Multithreading

B) Multiprocessing

C) Multitasking

D) Multiprogramming



9. Virtual memory is

A) an extremely large main memory

B) an extremely large secondary memory

C) an illusion of extremely large main memory

D) a type of memory used in super computers



10. A thread is a .................... precess.

A) heavy weight

B) multiprocess

C) inter thread

D) light weight






Answers:


1. Operating System means ........................

A) a set of programs which controls computer working.

2. The basic types of OS are ...................

D) batch and interactive

3. The simplest way of deadlock is to ...

C) kill one of the processes

4. Throughput of a system is

A) Number of programs processed by it per unit time

5. Which of the following is not OS layer?

D) Critical Section

6. Round robin scheduling is essentially the preemptive version of ...........

A) first in first out

7. The process that are residing in the main memory and are waiting to execute are kept on a list called the ............

B) ready queue

8. Which of the following describes the ability of an OS to support multiple, concurrent paths of execution within a single process?

A) Multithreading

9. Virtual memory is

C) an illusion of extremely large main memory

10. A thread is a .................... precess.

D) light weight



Related Posts:

Solved MCQ of Programming in C++ set-5

Solved MCQ of Programming in C++ set-5


1. There is a unique function in C++ program by where all C++ programs start their execution with ........

A) start()
Solved MCQ of Programming in C++
 Class diagram of C++ programming(Photo credit: Wikipedia)

B) begin()

C) main()

D) output()



2. Which of the following is not a jump statement in C++?

A) break

B) Goto

C) Exit

D) Switch



3. The memory address of the first element of an array is called ...................

A) floor address

B) foundation address

C) first address

D) base address



4. C++ exception handling mechanism mainly uses how many keywords?

A) Four

B) Three

C) Two

D) None of the above



5. When an exception is thrown, it needs to be .....................

A) Executed

B) Handled appropriately

C) Resolved

D) None of the above



6. After defining the function template, the next step to call it in another function such as .........

A) int()

B) secondary()

C) template()

D) main()



7. A file stream refers to the flow of data between a ...............

A) Program and object

B) Program and stream

C) Program and file

D) None of the above




8. .................. are one of the attributes of C++ that support run-time polymorphism.

A) Pointers

B) Derived classes

C) Virtual functions

D) Heap tree



9. which of the following header file does not exist?

A) iostream

B) string

C) sstring

D) sstream



10. To increase the value of c by one, which of the following is wrong?

A) c++;

B) c=c+1;

C) c+1=>c;

D) c+=1;





Answers:



1. There is a unique function in C++ program by where all C++ programs start their execution with ........

C) main()

2. Which of the following is not a jump statement in C++?

D) Switch

3. The memory address of the first element of an array is called ...................

D) base address

4. C++ exception handling mechanism mainly uses how many keywords?

B) Three

5. When an exception is thrown, it needs to be .....................

B) Handled appropriately

6. After defining the function template, the next step to call it in another function such as .........

D) main()

7. A file stream refers to the flow of data between a ...............

C) Program and file

8. .................. are one of the attributes of C++ that support run-time polymorphism.

C) Virtual functions

9. which of the following header file does not exist?

C) sstring

10. To increase the value of c by one, which of the following is wrong?

C) c+1=>c;


Related Posts


Enhanced by Zemanta