Questions

Q:

Which indian state banned the forceful religious conversions

Answer

Tamil Nadu

Report Error

View answer Workspace Report Error Discuss

Subject: Indian Culture

43 2509
Q:

Write a c program for insertion sort.

Answer

#include<stdio.h>
int main(){

  int i,j,s,temp,a[20];

  printf("Enter total elements: ");
  scanf("%d",&s);

  printf("Enter %d elements: ",s);
  for(i=0;i<s;i++)
      scanf("%d",&a[i]);

  for(i=1;i<s;i++){
      temp=a[i];
      j=i-1;
      while((temp<a[j])&&(j>=0)){
      a[j+1]=a[j];
          j=j-1;
      }
      a[j+1]=temp;
  }

  printf("After sorting: ");
  for(i=0;i<s;i++)
      printf(" %d",a[i]);

  return 0;
}

Output:
Enter total elements: 5
Enter 5 elements: 3 7 9 0 2
After sorting:  0 2 3 7 9

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2509
Q:

Man has _____ pairs of salivary glands

A) 3 B) 4
C) 6 D) 8
 
Answer & Explanation Answer: A) 3

Explanation:

Salivary glands of man are 3 pairs = 6. They are one pair of parotid glands, one pair of sub-maxillary or sub-mandibular glands and one pair of sub-lingual glands.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2508
Q:

Rearrange the parts of the sentence in correct order.

 


The orbital motion


P : of the earth


Q : uncertain rates


R : can have

 

A) QPR B)  QRP  
C) RQP   D) PRQ
 
Answer & Explanation Answer: D) PRQ

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

1 2506
Q:

Select the antonym of

 

panacea

 

A) malady B) cure
C) elixir D) nostrum
 
Answer & Explanation Answer: A) malady

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2505
Q:

Write a c program to create dos command type.

Answer

#include
int main( int count,char * argv[] ) {
    int i;
    FILE *ptr;
    char *str;
    char ch;
    if( count == 1) {


         printf( "The syntax of the command is incorrect.\n" );
    }
    for( i=1;i<cout;i++ ){
         ptr=fopen(argv[i],"r");
         if(ptr==NULL){
             printf("The system cannot find the file specified.");
             if(count>2)
                 printf("\nError occurred while procesing : %s.\n",argv[i]);
         }
         else {
             if(count>2) {
                 printf("%s\n\n",argv[i]);
             }
             while((ch=getc(ptr))!=-1)
                 printf("%c",ch);
         }
         fclose(ptr);
    }
    return 0;
}


 


Save the above file as open.c, compile and execute the go to command mode (current working directory) and write: open xy.c (xy.c any file present in that directory)
To run the open command in all directories and drive you will have to give the path of current working directory in command mode. Write:
C:tc\bin>PATH c:\tc\bin
Now press enter key. Now your open command will work in all directory and drive.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2505
Q:

Who invented Radar ?

Answer

Robert Watson Watt

Report Error

View answer Workspace Report Error Discuss

Subject: Inventions

1 2505
Q:

Which of the statements given below are correct?

A) In 2017, Gary Cahill captained the Premier League team Arsenal.

B) In 2018 IPL auctions, Kolkata Knight Riders retained Sunil Narine.

C) Roger Federer won the Tennis 2017 Wimbledon Championships Men's Singles.

A) Only B B) B and C
C) A, B and C D) None of these
 
Answer & Explanation Answer: B) B and C

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

0 2505