Computer Science, asked by mijinkbrahma84, 8 months ago

Which of the following is true for variable names in C ? *

1 point

(A) They can contain alphanumeric characters as well as special characters.

(B) It is not an error to declare a variable to be one of the keywords (like goto, static).

(C) Variable names cannot start with a digit.

(D) Variable can be of any length.

2) What is the output of this C code ?*

1 point



(A) 1

(B) 0

(C) Undefined behavior due to order of evaluation

(D) 2

3) Point out the error if any, in the while loop : ______. *

1 point



(A) The condition in while loop is must

(B) There should be a semicolon in the while loop

(C) The while loop should be replaced by for loop

(D) No error

4) What is right way to initialize arrays ? *

1 point

(A) int num[6]={2,4,12,5,45,5};

(B) int n{ }={2,4,12,5,45,5};

(C) int n{6}={2,4,12};

(D) int n(6)={2,4,12,5,45,5};

5) In C, if you pass an array as an argument to a function, what actually gets passed ? *

1 point

(A) Value of elements in array

(B) First element of array

(C) Base address of array

(D) Address of the last element of array

6) The output of the program is : *

1 point



(A) 20

(C) Compiler error

(B) 30

(D) Runtime error

7) If the two strings are identical,then strcmp( ) function returns *

1 point

(A) –1

(B) 0

(C) 1

Answers

Answered by samikshabishnoi5
0

Answer:

I don't understand your question clearly

Similar questions