Questions

Q:

Which interrupts is not level-sensitive in 8085?

Answer

TST 7.5 is a raising edge-triggering interrupt.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

2 4100
Q:

Answer the Following Puzzle.

Number_Puzzles_Typical_Aptitude_Questions_and_Answers1585548407.png image

A) 1111 B) 4311
C) 1143 D) 4343
 
Answer & Explanation Answer: C) 1143

Explanation:

Starting with the top 3 digit number, the first digit increases by 2 as you descend,from 1 to 11. The middle digit decreases by 1 each time,and the right hand digit alternates between 5 and 3

Report Error

View Answer Report Error Discuss

Filed Under: Number Puzzles
Exam Prep: CAT , Bank Exams

13 4100
Q:

I have four fingers and a thumb, but not alive.

Who am I?

Answer

A glove. It has 5 fingers as we have but not alive.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

2 4100
Q:

Atomic weight of an element is given by

A) sum of neutrons and electrons B) sum of neutrons and protons
C) only neutrons D) only protons
 
Answer & Explanation Answer: A) sum of neutrons and electrons

Explanation:

Atomic weight=number of neutrons+number of protons

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

7 4098
Q:

What cannot be performed from the windows task manager?

A) Open a program B) Check recent CPU usage
C) Delete a program from the hard drive D) View what applications are running in the background
 
Answer & Explanation Answer: C) Delete a program from the hard drive

Explanation:

The task manager enables you to monitor processes, applications and services currently running on your computer. You can use it to start and stop programs and processes. In addition, you can use the task manager to show informative stats about your PC’s performance and network.

 


Hence, to delete a program from the hard drive, you have to go to the control panel to uninstall an application properly.

 

Report Error

View Answer Report Error Discuss

6 4098
Q:

Write a c program to find out sum of diagonal element of a matrix.

Answer

#include<stdio.h>

int main(){

  int a[10][10],i,j,sum=0,m,n;

  printf("\nEnter the row and column of matrix: ");
  scanf("%d %d",&m,&n);

  printf("\nEnter the elements of matrix: ");
  for(i=0;i<m;i++)
      for(j=0;j<n;j++)
           scanf("%d",&a[i][j]);
  printf("\nThe matrix is\n");

  for(i=0;i<m;i++){
      printf("\n");
      for(j=0;j<m;j++){
      printf("%d\t",a[i][j]);
      }
 }
 for(i=0;i<m;i++){
     for(j=0;j<n;j++){
          if(i==j)
              sum=sum+a[i][j];
     }
 }
 printf("\n\nSum of the diagonal elements of a matrix is: %d",sum);

 return 0;
}

Sample output:

Enter the row and column of matrix: 3 3
Enter the elements of matrix:
2
3
5
6
7
9
2
6
7
The matrix is
2       3       5
6       7       9
2       6       7
Sum of the diagonal elements of a matrix is: 16

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 4097
Q:

The largest flag of India measuring _______ feet was inaugurated on March 5, 2017 on the tallest flag post at the Indo-Pak Attari Border in Amritsar.

A) 360 ft B) 280 ft
C) 300 ft D) 310 ft
 
Answer & Explanation Answer: A) 360 ft

Explanation:
  • A 360-foot-high (110 metres) flag post, said to be the country's tallest, was inaugurated at the Indo-Pak Attari Border, just a stone's throw from Pakistan.
  • Punjab Minister Anil Joshi inaugurated the country's largest tricolour on the tallest flag post - measuring 110 metres in length, 24 metres in width and 55 tons in weight. Built at an approximate cost of Rs 3.50 crore, the post was a project of the Amritsar Improvement Trust Authority of the Punjab Government.
Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

12 4096
Q:

How would you use qsort() function to sort an array of structures?

Answer

#include "string.h"


#include "stdlib.h"


struct stud


{


       int rollno;


       int marks;


       char name[30];


};


int sort_m (struct stud *, struct stud *);


int sort_name (struct stud *, struct stud *);


int sort_marks (struct stud *, struct stud *);


 


main()


{


static struct stud ss[] = {


                                            { 15, 96, "Akshay" },


                                            { 2, 97, "Madhuri" },


                                            { 8, 85, "Aishvarya" },


                                            { 10, 80, "Sushmita" }


                                   };


int x,w;


clrscr();


w = sizeof (struct stud);


 


printf ('\nIn order of roll numbers:");


qsort (ss, 4, w, sort_rn);


for(x=0; x<4;x++)


     printf ("\n%d%s%d", ss[x].rollno, ss[x].name,ss[x].marks);


 


printf("\n\nIn order of names:");


qsort(ss, 4, sort_name);


 


for (x=0; x<4;x++)


      printf("\n%d%s%d",ss[x].rollno, ss[x].name,ss[x].marks);


printf("\n\nIn order of marks:");


qsort(ss,4,w,sort_marks);


 


for (x=0;x<4;x++)


      printf ("\n%d%s%d",ss[x].rollno,ss[x].name,ss[x].marks);


}


int sort_rn (struct stud *t1, struct stud *t2)


{


     return (t1->rollno-t2->rollno);


}


 


int sort_name (struct stud *t1, struct stud *t2)


{


     return (strcmp(t1->name,t2->name));


}


int sort_marks (struct stud *t1, struct stud *t2)


{


     return (t2->marks-t1->marks);


}


 


 


 

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4096