Home / Engineering / Programming for Problem Solving MCQs / Page 10

Programming for Problem Solving MCQs | Page - 10

Dear candidates you will find MCQ questions of Programming for Problem Solving here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.

M

Mr. Dubey • 51.17K Points
Coach

Q. 91) Consider the 32 bit compiler. We need to store address of integer variable to integer pointer. What will be the size of integer pointer?

(A) 10 Bytes
(B) 4 Bytes
(C) 2 Bytes
(D) 6 Bytes
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 92) In order to fetch the address of the variable we write preceding _________ sign before variable name.

(A) Asteriks
(B) Percent
(C) Comma
(D) Ampersand
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 93) What is right way to Initialization array?

(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 }
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 94) What is the right way to access value of structure variable book{ price, page }?

(A) printf("%d%d", book.price, book.page);
(B) printf("%d%d", price.book, page.book);
(C) printf("%d%d", price::book, page::book);
(D) printf("%d%d", price -->book, page -->
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 95) What is true about fputs function

(A) write to a file
(B) takes two parameters
(C) requires a file pointer
(D) all of above
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 96) Wild pointer in C

(A) if pointer is pointing to a memory location from where variable has been deleted
(B) if pointer has not been initialized
(C) if pointer has not defined properly
(D) if pointer pointing to more than one variable
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 97) Any type of modification on the parameter inside the function will reflect in actual variable value can be related to..

(A) call by value
(B) call by reference
(C) both of above
(D) none of above
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 98) Size of void pointer is

(A) 1 byte
(B) 2 byte
(C) 3 byte
(D) 4 byte
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 99) To print a single character in ouptut,which function is used?

(A) getchar()
(B) gets()
(C) putchar()
(D) puts()
View Answer Discuss Share

M

Mr. Dubey • 51.17K Points
Coach

Q. 100) #define t 10
void main()
{
printf("%d",t);
}

(A) 10
(B) Error:Unfined symbol 't'
(C) Error:Improper placement of preprocessor
(D) none of the above
View Answer Discuss Share