Questions

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 2907
Q:

In the below puzzle, a word starts and ends with the same letter. Can you figure out what the word is?

_otato_

Answer

rotator

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles

18 2906
Q:

I come in different colors and shapes. Some parts of me are curvy some are straight. You can put me anywhere you like but there is only one right place for me. What am I?

Answer

A Jig saw puzzle pieces are in different colors which have different shapes. 


You can put it anywhere you like but there is only one right place for it to be fit in it.

Report Error

View answer Workspace Report Error Discuss

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

4 2906
Q:

Which of the following planets is known as Earth's twin?

A) Mars B) Saturn
C) Uranus D) Venus
 
Answer & Explanation Answer: D) Venus

Explanation:

Venus is known as earth's twin because of its closeness to the earth with respect to size, mass(weight) and density.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 2906
Q:

Who is the first woman lawyer to be appointed as Supreme court judge?

A) Indu Malhotra B) Fathima Beevi
C) R. Banumathi D) Ruma Pal
 
Answer & Explanation Answer: A) Indu Malhotra

Explanation:

Supreme Court collegium has selected senior advocate Indu Malhotra as the first woman lawyer to be directly appointed as a judge of the apex court.

Along with Malhotra, Uttarakhand High Court Chief Justice KM Joseph has also been promoted as a Supreme Court justice.

Malhotra holds the distinction of being only the second woman in Supreme Court’s history to be designated as a senior advocate in 2007.

In all, Malhotra is going to be the seventh woman judge since independence to make it to the Supreme Court.

At present, Justice R Banumathi is the lone woman judge in the apex court.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

2 2906
Q:

Particles of matter are continuously moving.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Yes, in any matter the particles are always moving. But the speed of the particles moving sepends on the temperature. As temperature increases, the speed of the particles also increases.

Report Error

View Answer Workspace Report Error Discuss

Subject: General Science
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 2906
Q:

Which of the following does not occur during Mitosis?

A) spindle formation B) condensation of the chromosomes
C) breakdown of the nuclear membrane D) replication of the DNA
 
Answer & Explanation Answer: D) replication of the DNA

Explanation:

Replication of the DNA does not occur during Mitosis.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE
Job Role: Analyst

2 2906
Q:

One billionth of a second is called

A) microsecond B) picoseconds
C) millisecond D) nanosecond
 
Answer & Explanation Answer: D) nanosecond

Explanation:

A nanosecond (ns) is an SI unit of time equal to one thousand-millionth of a second or one billionth of a second.

 

  • That is, 1/1,000,000,000 of a second, or 10^−9 seconds.
Report Error

View Answer Report Error Discuss

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

1 2905