Questions

Q:

Write a c program to copy a data of file to other file.

Answer

#include<stdio.h>
int main(){
  FILE *p,*q;
  char file1[20],file2[20];
  char ch;
  printf("\nEnter the source file name to be copied:");
  gets(file1);
  p=fopen(file1,"r");
  if(p==NULL){
      printf("cannot open %s",file1);
      exit(0);
  }
  printf("\nEnter the destination file name:");
  gets(file2);
  q=fopen(file2,"w");
  if(q==NULL){
      printf("cannot open %s",file2);
      exit(0);
  }
  while((ch=getc(p))!=EOF)
      putc(ch,q);
  printf("\nCOMPLETED");
  fclose(p);
  fclose(q);
 return 0;
}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2066
Q:

What is a job queue?

Answer

When a process enters the system it is placed in the job queue.

Report Error

View answer Workspace Report Error Discuss

0 2066
Q:

What is a device queue?

Answer

A list of processes waiting for a particular I/O device is called device queue.

Report Error

View answer Workspace Report Error Discuss

0 2066
Q:

When should you stop at green and go at red?

Answer

When you are eating a Watermelon, we eat what is red and stop at green layer.

Report Error

View answer Workspace Report Error Discuss

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

2 2066
Q:

Which is the India's largest milk producing state?

A) Andhra Pradesh B) Uttar Pradesh
C) Himachal Pradesh D) Madhya Pradesh
 
Answer & Explanation Answer: B) Uttar Pradesh

Explanation:

Uttar Pradesh is the India's largest milk producing state. It contributes 17% of the total milk production in the country followed by Andhra Pradesh.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Job Role: Analyst , Bank Clerk , Bank PO

5 2066
Q:

The non-green heterotropic plants of plant kingdom are

A) Algae B) Ferns
C) Mosses D) Fungi
 
Answer & Explanation Answer: D) Fungi

Explanation:

The non-green heterotropic plants of plant kingdom are Fungi.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

1 2066
Q:

Read the passage carefully and select the best answer to each question out of the given four alternatives.

 

One should consciously engage in activities that will nourish your soul. Just as we nourish the body, we need to nurture the soul to connect to the creative power of the universe and to manifest joy in our lives. Often, we forget to address the soul, lost as we are in a jungle of material and sensual pleasures. But the more you embrace what feeds your soul, the happier you become. So if you want to enjoy the abundance of life, engage in what enriches your soul. Nurturing the soul is all about finding calm amidst chaos. There are a number of practices that empower people towards this end including silent contemplation, various forms of meditation, yoga and tai chi However, the rigor and discipline involved in the pursuit of such practices often seems to discourage people. Add to this, the temptations of the material world that leave little time and motivation for anyone to pursue the spiritual path. Poet Walt Whitman declared: “Whatever satisfies the soul is truth”. The good news is that simple, everyday activities can also nutrify the soul — like spending time in the midst of nature, dancing in the rain or just putting thoughts on paper. Do whatever is calming and pleases you. Creative pursuits are particularly appealing as inside each one of us, there is an artist craving for release and awaiting an opportunity for expression. One of the ways to indulge the artist within is to get started with the practice of any one or more of the creative art forms such as music, singing, dancing, acting, drawing, painting, sculpting, poetry, fiction or essay writing.

 

When you engage in such soul nourishing activities, all thought and energy gets focused toward goal accomplishment. At this point, you will find that even unknown forces of the universe are conniving to assist you in your amateurish but sincere attempts. As you progress, you are motivated to do better. You touch and access a faculty, a part of you that you never knew existed. Your inner artist is unleashed, baring the beauty of your soul that has found a fond medium of expression. For instance, a sculptor’s soul is seen in his artwork; a musician’s in his compositions; an actor’s in his acting, a painter’s in his paintings and so on. It is immaterial whether your effort is an immaculate artwork or just a clumsy attempt by a layperson. The idea is to try, be inspired and to create giving free rein to the mind. As Michelangelo remarked: “I saw the angel in the marble and carved until I set him free”!

 

What can you infer from Michelangelo’s statement - "I saw the angel in the marble and carved until I set him free"?

 

A) Michelangelo’s soul probably wanted to free the angel and hence his artwork portrayed the same. B) Michelangelo didn’t like the angel and hence wanted to do away with it
C) Michelangelo wanted his artwork to look as close to real as possible. D) Michelangelo’s mind felt free after setting the angel free in his artwork.
 
Answer & Explanation Answer: A) Michelangelo’s soul probably wanted to free the angel and hence his artwork portrayed the same.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2066
Q:

Which element has the lowest ionization energy?

A) He B) Ne
C) Fr D) Rb
 
Answer & Explanation Answer: C) Fr

Explanation:

Ionisation energy is the energy required to remove one mole of electrons from one mole of gaseous atoms. Atoms are more stable when they have full valence shells.


The ionization energy decreases from top to bottom in groups, and increases from left to right across a period.

 

HGence, in this trend Francium (Fr) has the lowest ionization energy.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 2066