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

What are the three parts of the Nucleotide?

Answer

Nucleotides are the building blocks of the DNA and RNA used as genetic material. Nucleotides also are used for cell signaling and to transport energy throughout cells.


Both deoxyribonucleic acid (DNA) and ribonucleic acid (RNA) are made up of nucleotides which consist of three parts::


1. Nitrogenous Base
2. Pentose Sugar
3. Phosphate Group.

Report Error

View answer Workspace Report Error Discuss

Subject: Biology Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk

6 2837
Q:

Laterite is chemically classified as

A) argillaceous rock B) metamorphic rock
C) caleareous rock D) sillcious rock
 
Answer & Explanation Answer: A) argillaceous rock

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2837
Q:

How do we now Know the company founded as the Battlecreek Toasted Cornflake Company in 1906?

Answer

Kellogg's

Report Error

View answer Workspace Report Error Discuss

0 2836
Q:

Stars are held together by

A) Gravitational forces B) Electrical forces
C) Ionic forces D) Magnetic forces
 
Answer & Explanation Answer: A) Gravitational forces

Explanation:

A star is a self luminous astronomical object and shines due to internal radiation from the enrgy sources. All stars are held together by their own gravity called Gravitational force.

Stars_are_held_together_by1560151249.jpg image

Report Error

View Answer Report Error Discuss

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

5 2835
Q:

Which is the longest railway platform in the world?

A) Mumbai B) Gorakhpur
C) Thane D) Kochi
 
Answer & Explanation Answer: B) Gorakhpur

Explanation:

Gorakhpur railway platform in Uttar Pradesh is the longest railway platform in the world.

Report Error

View Answer Report Error Discuss

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

4 2835
Q:

I am a box that holds keys without locks, yet they can unlock your soul. What am I?

A) Keyboard B) Keypad
C) Piano D) Key holder
 
Answer & Explanation Answer: C) Piano

Explanation:
Report Error

View Answer Report Error Discuss

5 2835
Q:

A man was slowly counting but unfortunately he miscounted. A little later he suffered a sharp pain is his back. Why?

Answer

The man want to buy a shirt went to a shop. He was counting the pins as he removed them from a new shirt. unfortunately, he missed one and wore.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams

11 2835