Home / Rudra Pratap Singh / Programming Language MCQs
Total questions: 30
Q. What is the output of the following C program?
Q. Which of the following is not a valid statement?
Q. Which of these functions should I use to round 2.5 to 2?
Q. After the operation res = (13/5) -2, what will “res” be equal to?
Q. Which expression is valid?
Q. We want to get a decimal number entered from the keyboard, which statement is correct?
Q. What data type can store -15?
Q. What data type can store 15.9635?
Q. Which of the following options are the basic arithmetic operators, i.e. the execution of the desired operation can be done using only this operator?
Q. Which of the following data types will generate an error on the modulo % operation?
Q. Which of the following is not an arithmetic operation?
Q. Determine the priority of each operator (highest to lowest)?
Q. How to initialize a pointer to an array of 10 char?
Q. Dynamic memory allocation follows steps in a particular order, which one?
Q. What happens in the memory with the following code?
Q. What is the value of “y” in this code?
Q. The program that translates your code from a high-level language to the binary language is called ________
Q. What kind of files can be created with C programming?
Q. Which of the following characters returns the cursor to the left of the screen?
Q. Which of the following characters is used to make a line break on the screen?
Q. Which of the following functions display “Hello, World!” on the screen in console mode?
Q. What is the name of the main function of a C program?
Q. What is a library?
Q. How to write a comment on a single line?
Q. Which character always ends a statement?
Q. A preprocessor directive is a statement that begins with_____