image not found

Oops! That page can't be found.


Directions to Solve

Which of phrases given below each sentence should replace the phrase printed in bold type to make the grammatically correct? If the sentence is correct as it is, mark 'E' as the answer.

Q1: The crime has growth rapidly in Russia since the disintegration of the communist system.

A crime has grown rapidly

B crimes have been rapidly grown

C rapid crime has grown

D No correction required

E crimes grow rapidly

Q2: Which of the declaration is correct?

A char int;

B int long;

C int length;

D float double;

Q3: Point out the error in the following code?
typedef struct
{
    int data;
    NODEPTR link;
}*NODEPTR;

A No error

B None of above

C Error: typedef cannot be used until it is defined

D Error: in *NODEPTR

Q4: Is the following declaration acceptable?
typedef long no, *ptrtono;
no n;
ptrtono p;

A Yes

B NO

Q5: Is there any difference in the #define and typedef in the following code?
typedef char * string_t;
#define string_d char *;
string_t s1, s2;
string_d s3, s4;

A Yes

B No

Q6: Are the properties of i, j and x, y in the following program same?
typedef unsigned long int uli;
uli i, j;
unsigned long int x, y;

A No

B Yes

Q7:
typedef's have the advantage that they obey scope rules, that is they can be declared local to a function or a block whereas #define's always have a global effect.

A No

B Yes

Q8:
Which header file should be included to use functions like malloc() and calloc()?

A dos.h

B string.h

C stdlib.h

D memory.h

Q9:
What function should be used to free the memory allocated by calloc() ?

A memalloc(variable_name, 0)

B free();

C malloc(variable_name, 0)

D dealloc();

Q10: How will you free the memory allocated by the following program?
#include<stdio.h>
#include<stdlib.h>
#define MAXROW 3
#define MAXCOL 4

int main()
{
    int **p, i, j;
    p = (int **) malloc(MAXROW * sizeof(int*));
    return 0;
}

A free(p);

B dealloc(p);

C memfree(int p);

D malloc(p, 0);