Microprocessor set 1

Objective type Question of MicroProcessor      Set   1 1. Which interrupt has the highest priority? a) INTR          b) TRAP              c) RST6.5 Answer: C 2. In 8085 name the 16 bit registers? a) Stack pointer          b) Program counter          c) a & b Answer: C 3. Which of the following is hardware interrupts? a) RST5.5, RST6.5, RST7.5              [...] Continue reading →

Program of Logical operator in java

Java uses logical operators AND(&&),OR(||),NOT(!).These operator yield 1 or 0 depending upon the outcome of different expressions.The different types of logical operators with their format are: Logical operator Symbol Format AND && (x>y)&&(x>z) OR || (x= =y)||(x==z) NOT ! !(x= =y) Precedence of logical operators is  NOT(!) then AND(&&) and  then OR(!!). Logical AND(&&) The [...] Continue reading →

Write a program in java to accept 10 different number in a single Dimensional array .enter a number and using Binary search technique,check whether the number is present or not in the array.If the number is present then display the message “Search Successful”otherwise “The is not Successful”

//To search using Binary Search import java.io.*; public class binsearch { public static void main(String arg[]) { InputStreamReader r1=new InputStreamReader(System.in); BufferedReader in=new BufferedReader(r1); int i,j,k,l,m,n,p; n=0; j=0; k=9; l=0; for(i=0;i<10;i++) { System.out.println(“Enter the elements”+(i+1)+”:”); M[i]=Integer.parseInt(in.readLine()); While( j<=k) { l=(j+k)/2 if(m[p]<n) j=l+1; if(m[l]>n) k=l-1; if(m[l]==n) { p=1; break; } } if(p==1) System.out.println(“The search is Sucessful”); Else [...] Continue reading →

Write a program in java assign 10 different number in a single Dimensional Array and search whether a given number is present or not and display the relevant message.

//To search a number by Linear Search import java.io.*; Public class ser { public static void  main (String arg[])throws IOException { InputStreamReader r1=new InputStreamReader (System.in); BufferedReader in=new BufferedReader(r1); int i,j,k,m; k=0; int m[]=new int[10]; for(i=0;i<=10;i++) { System.out.println(“enter the number in the cell:”); m[i]=Integer.parseInt(in.readLine()); } System.out .println(“Enter the number to be searched”); j= Integer.parseInt(in.readLine()); for(i=0;i<=10;i++) { [...] Continue reading →

Write a program in java assign 10 different number in a single Dimensional Array and display the maximum and minimum number of array elements.

import java.io.*; Public class Maxmin { public static void  main (String arg[]) { InputStreamReader r1=new InputStreamReader (System.in); BufferedReader in=new BufferedReader(r1); int i,j,min,max; int m[]=new int[10]; for(i=0;i<=10;i++) { System.out.println(“enter the number in the cell:”); m[i]=Integer.parseInt(in.readLine()); } max=m[0]; min=m[0]; for(i=0;i<=10;i++) { if(max<m[i]) max=m[i]; if(min>m[i]) min=m[i]; } System.out.println(“The greatest number of the array elements=”+max); System.out.println(“The smallest number of [...] Continue reading →

Multiple Choice Questions of Microsoft Excel

  Multiple Choice Questions of Microsoft Excel  1. Which of the following is the latest among these versions of Excel? A. Excel 2000                                    B. Excel 2002 C. Excel ME                                       D. Excel 2010 Answer: D  2. What will be the output if you format the cell containing 5436.8 as ‘#,##0.00′? A. 5,430.00                                      B. 5,436.80 [...] Continue reading →

Objective Type question of Microsoft Word

Microsoft Word 1. To remove existing background of the document, select: A. view, normal                              B. Tools, options C. Edit, clear                                   D. Format, background Answer: D 2. To type subscript character like H2O, use the following keyboard combination: A. Ctrl+=                                         B. Alt+= C. Ctrl+shift+=                                D. Alt+Shift+= Answer: A 3. What is the short cut key to [...] Continue reading →
Page 1 of 35123456»102030...Last »