Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

C Programming Objective Questions and Answers, Exercises of C programming

Objective questions and answers related to the c programming language. The questions cover various topics such as function returns, pointers, relational operators, and member functions. Students and professionals can use this document to test their knowledge and prepare for exams or interviews.

Typology: Exercises

2021/2022

Uploaded on 02/24/2022

beatryx
beatryx 🇺🇸

4.6

(16)

291 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C Programming Objective Questions & Answers Pdf
Question: 1
How many values can be returned from a function?
(A) 1
(B) 2
(C) 3
(D) 4
Ans: A
1
Question: 2
A pointer is
(A) data type of an address variable
(B) a variable for storing address
(C) indication of the variable to be accessed next
(D) address of a variable
Ans: B
a variable for storing address
Question: 3
pf3

Partial preview of the text

Download C Programming Objective Questions and Answers and more Exercises C programming in PDF only on Docsity!

C Programming Objective Questions & Answers Pdf Question: 1 How many values can be returned from a function? (A) 1 (B) 2 (C) 3 (D) 4 Ans: A 1 Question: 2 A pointer is (A) data type of an address variable (B) a variable for storing address (C) indication of the variable to be accessed next (D) address of a variable Ans: B a variable for storing address Question: 3

A relational operator (A) assigns operand to another (B) yields a Boolean result (C) logically combines two operands (D) compares two operands Ans: D compares two operands Question: 4 In C++, a function contained within a class is called (A) a method (B) a class function (C) member function (D) none of these Ans: C member function Question: 5 An array element is accessed using (A) member name (B) an index number