Smartindia Classroom
CONTENTS
Chemistry
English
Mathematics
Physics
Computer Science(NCERT)
Back to home
Start Practice
Question-1
Which of the following is a methods through which main memory is allocated?
(A)
Static memory allocation
(B)
Dynamic memory allocation
(C)
Compilation
(D)
Both a and b
Question-2
Which method is used to allocate memory at compilation time?
(A)
Static memory allocation
(B)
Dynamic memory allocation
(C)
Run time memory allocation
(D)
None of these
Question-3
What is a pointer?
(A)
data type
(B)
literal
(C)
variable
(D)
string
Question-4
Which of the following is the correct pointer declaration?
(A)
Pointer *p;
(B)
P*;
(C)
*p;
(D)
Int *p;
Question-5
What is a string?
(A)
Primitive Data type
(B)
Array of characters
(C)
Array of words
(D)
Represents data type
Question-6
Which of the following is used with pointers?
(A)
&&
(B)
||
(C)
!
(D)
&
Question-7
Which operator is used for dynamic memory allocation?
(A)
Scope resolution operator
(B)
Relational
(C)
New
(D)
&&
Question-8
What is the correct code line to store the address of x into pointer variable p?
(A)
P=*x;
(B)
P=x*;
(C)
P=&x;
(D)
P*=x;
Question-9
Where are the datas being executed allocated?
(A)
Static memory
(B)
Primary memory
(C)
Main memory
(D)
Secondary memory
Question-10
What will be the address of the first element of an array?
(A)
Array name
(B)
Array size
(C)
First array element name
(D)
Array type
Your Score 0/10
Click
here
to see your answersheet and detailed track records.
Plus 2 Computer Science
CBSE
Practice in Related Chapters
Object Oriented Programming in C++
Data Structure
Pointers
Constructor and Destructor
Classes and Objects
Database Concepts
Communication and Open Source Concepts
Databases Management System and SQL
Boolean Algebra
Data Structures (Arrays, Stack and Queue)
Class and Object
Powered By