Operating System

Showing posts with label C Programming. Show all posts
Showing posts with label C Programming. Show all posts

Monday, July 13, 2015

What will be output if you will compile and execute the following c code?

Leave a Comment
What will be output if you will compile and execute the following c code?
void main(){
char c=125;
c=c+10;
printf("%d",c);
}
2
0
-121
1
Read More

Friday, May 1, 2015

State true or false: A linker links multiple object files into single exceutable file.

Leave a Comment
State true or false:
A linker links multiple object files into single exceutable file.
TRUE
FALSE
ALL
NONE
Read More

Which of the following must be enclosed within parenthesie

Leave a Comment
Which of the following must be enclosed within parenthesie
Operand 
operaters 
parentheses list
parameter list
Read More

If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?

Leave a Comment
If a base class member access is public, and an inherited class accesses specifier is private, which of the following statement is true ?
The base class member can be accessed by derived class objects
The base class members cannot be accessed by the derived class members
None of the listed options
The derived class members can be accessed by the base class objects
Read More

Which of the following is related to access specifier?

Leave a Comment
Which of the following is related to access specifier?
determines variable and method access 
defines method 
None of the listed options 
read only objects
Read More

Tuesday, April 28, 2015

The situation when in a linked list START=NULL is

Leave a Comment
The situation when in a linked list START=NULL is
None of the listed options
NONE
Underflow
Overflow
Read More

What is the output for above program ?

Leave a Comment
Queue *Q = createQueue(5);  
Enqueue(Q,1);
Enqueue(Q,2);
Enqueue(Q,3);
Enqueue(Q,4);
printf("Front element is %d\n",front(Q));
What is the output for above program ?
4
1
2
3
Read More

Well formed parenthesis can be checked using following data structure ?

Leave a Comment
Well formed parenthesis can be checked using following data structure ?
Stack

Linked List
Queues
Trees
Read More

Sunday, April 26, 2015

Which of the following statements are true with respect to encapsulation?

Leave a Comment
Which of the following statements are true with respect to encapsulation?
Enclosing items within a physical or logical package
Capping the products of a class in a different environment
Extracting the data from the package
Manages complexity by creating entities that focus on essential characteristics
Read More

Which of the following statements is true as far as method names are concerned?

Leave a Comment
Which of the following statements is true as far as method names are concerned?
Method names are unique identifiers
Method names are case sensitive
Method names can't be same as the variable name or any other non method item declared in the class
All the mentioned options
Read More

The operation defined by Abstract data type are the only operations permitted on its ____________

1 comment
The operation defined by Abstract data type are the only operations permitted on its ____________
None of the listed options
object
Method
Data
Read More

Which of the following factors influences an object's change of behaviour?

Leave a Comment
Which of the following factors influences an object's change of behaviour?
Both of the listed options
Number of input parameters
None of the listed options
Type of input parameters
Read More

Method names are case insensitive.State true or false.

1 comment
Method names are case insensitive.State true or false.
TRUE
FALSE
ALL
NONE
Read More

A method can return a value of ________ type.

Leave a Comment
A method can return a value of ________ type.
Any
Only void
Only integer and string
Specific
Read More

What is meant by the term Method definition?

Leave a Comment
What is meant by the term Method definition?
None of the listed options
declaring the elements of its structure
Identifying the objects
declaring the objects
Read More

We cannot modify the code in base class as it will affect the derived classes as well.State true or false.

Leave a Comment
We cannot modify the code in base class as it will affect the derived classes as well.State true or false.
FALSE
TRUE
ALL
NONE
Read More

The conversion from basic data to class type can be done by ______________________.

1 comment
The conversion from basic data to class type can be done by ______________________.
object of a class
overloaded casting operator
Is not possible 
Writing constructor
Read More

We can extend subclass in an abstract class.State true or false.

Leave a Comment
We can extend subclass in an abstract class.State true or false.
TRUE
FALSE
NONE
ALL
Read More

Using inheritance concepts,we can improve the implementation time taken.State true or false.

Leave a Comment
Using inheritance concepts,we can improve the implementation time taken.State true or false.
TRUE
FALSE
ALL
NONE
Read More

Saturday, April 25, 2015

Which of the following contains set of instructions to complete the Intended operation?

Leave a Comment
Which of the following contains set of instructions to complete the Intended operation? 
Instruction Set
None
Method
Container
Read More