(A) class A { int x; };
(B) class B { }
(C) public class A { }
(D) object A { int x; };
Category: Introduction to Programming Mcqs
Introduction to Programming Mcqs for Screening tests, Interviews, Viva and Other competitive exams. Programming Mcqs section will help users to prepare mcqs of programming languages for various exams. Aspirants of Lecturer Computer Science, SST Computer Science, Subject Specialist Computer Science, Data Entry operator, Computer Programmer, Computer Operator, Software engineer and all other Competitive Exams can prepare their computer programming portion from here.
If the return type of a function is void then it means that it will,?
(A) Return any type of data
(B) Return some specific type of data
(C) Return no data
(D) Return just character data
If Num is an integer variable then Num++ means,?
(A) Add 1 two times with
(B) Add 1 with Num
(C) Add 2 with Num
(D) Subtract 2 from Num
The variables having a name, type and size are just like empty boxes?
(A) True
(B) False
(C) Both
(D) None
C is a/an __ language.
(A) low level
(B) object based
(C) object oriented
(D) function oriented
What will be the correct syntax to assign an array named arr of 5 elements to a pointer ptr?
(A) *ptr = arr ;
(B) ptr = arr ;
(C) *ptr = arr[5] ;
(D) ptr = arr[5] ;
Which of the following is the correct statement for the following declaration? const int *ptr.?
(A) ptr is a constant pointer
(B) ptr is constant integer pointer
(C) ptr is a constant pointer to int
(D) ptr is a pointer to const int
How many total elements must be in two-dimensional array of 3 rows and 2 columns?
(A) 4
(B) 5
(C) 6
(D) 7