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

Covalent bonds hold atoms together because they 

A) fill shells without giving atoms much charge B) bring electrons closer to protons
C) Both A & B D) use forces between nuclei as well as forces between electrons
 
Answer & Explanation Answer: C) Both A & B

Explanation:

Covalent bonds hold atoms together because the attraction between the positively charged nuclei and the negatively charged shared electrons is greater than the repulsions between the nuclei themselves.

Report Error

View Answer Report Error Discuss

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

0 2684
Q:

Basophils increase in number when parasitic invasion occurs.

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

Explanation:

FALSE. Basophils number will not be increased when parasitic invasion occurs.


 


Basophils are a type of white blood cell. Although they're produced in the bone marrow, they're found in many tissues throughout your body. They're part of your immune system and play a role in its proper function.


 


Basophils appear in many specific kinds of inflammatory reactions, particularly those that cause allergic symptoms. If your basophil level is low, it may be due to a severe allergic reaction.


 


Basophils contain anticoagulant heparin, which prevents blood from clotting too quickly. They also contain the vasodilator histamine, which promotes blood flow to tissues.


 

Report Error

View Answer Workspace Report Error Discuss

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

2 2684
Q:

Study of inter relationship between living organism and their environment is called _______

A) Plant Geography B) Plant social science
C) Ecology D) Ecosystem
 
Answer & Explanation Answer: C) Ecology

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

4 2683
Q:

If a > b > 0, AB = a - b cm, BC = 2√ab cm, then ∠ABC is

A)  45° B)  60
C)  90° D)  120°
 
Answer & Explanation Answer: C)  90°

Explanation:
Report Error

View Answer Report Error Discuss

10 2683
Q:

What is the gram formula mass of K2CO3?

A) 147 B) 138
C) 129 D) 116
 
Answer & Explanation Answer: B) 138

Explanation:

The gram formula mass of a compound is nothing but the molar mass.

The molar mass of K2CO3 (Potassium Carbonate) is given by

Atomic weights of individual elements are

 

K (Potassium) = 39 g

C (Carbon) = 12 g

O (Oxygen) = 16 g

 

Hence, that of K2CO3 = 39(2) + 12 + 16(3)

= 78 + 12 + 48

= 138.

Report Error

View Answer Report Error Discuss

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

2 2682
Q:

In a compound, chemical energy is contained in the

A) bonds B) movement of the electrons
C) unbonded electrons D) nuclei of the atoms
 
Answer & Explanation Answer: A) bonds

Explanation:

chemical energy is contained in the chemical bonds between the reactants in the chemical compounds.

Report Error

View Answer Report Error Discuss

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

0 2682
Q:

What process never occurs in interphase?

Answer

Absence of cell division is the process that never comes in interphase.

Report Error

View answer Workspace Report Error Discuss

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

5 2681