Posts

Showing posts from November, 2013

How to Create JavaScript Image Slideshow with Links

Image
 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

Image Slideshow with Navigation Buttons Using Javascript

Image
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] =

Solved Objective Questions on Operating System set-8

Image
1. A small program which loads OS into the memory is called as ........... 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 T

Solved MCQ Questions on Operating System set-7

Image
1. Operating System means ........................ A) a set of programs which controls computer working. 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

Solved MCQ of Programming in C++ set-5

Image
1. There is a unique function in C++ program by where all C++ programs start their execution with ........ A) start()  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

Solved MCQ of Programming in C set-3

Image
Dependency graph for tgmath.h header file in C Programming Language (Photo credit: Wikipedia ) 1. C language is available for which of the following operating systems? A) DOS B) Windows C) Unix D) All of the above 2. Which of the following are tokens in C? A) Keywords B) Variables C) Constraints D) All of the above 3. C was developed in the year ..................... A) 1970 B) 1972 C) 1976 D) 1980 4. Which escape character can be used to beep from speaker in C? A) \a B) \b C) \m D) \n 5. Which of the following is a keyword is used for storage class? A) printf B) external C) auto D) scanf 6. Continue statement is used ............. A) to go to the next iteration in a loop B) come out of a loop C) exit and return to the main function D) restarts iteration from beginning of loop 7. File manipulation functions in C are available in which header file ? A) streams.h B) stdio.h C) stdlib.h D) files.h 8. A compiler ................ A) is a computer program B) translates a high level languag