Showing posts with label Data type. Show all posts
Showing posts with label Data type. Show all posts

The C programming language was developed at Be...Image via Wikipedia

1.(i) in c there is no oop concept but in c++ have oop concept
(ii) In C program divide into number of sub-parts called function.but in C++ program divide into number of sub-parts called methods

2. Yes we can pass arguments to main

3.Even though static and constant variable are common for all a objects the value of static variable can be increased in time being but it cannot be increased in constant variable

4. void main()
{ if(printf("Hello world")){}}

5.The answer is 44..
As the space is an empty character and one the compiler counts one more character for the Null character constant '/0' And the space that Null takes in memory is 4 bytes same as int but this value depends on the Compiler that you use

6.2 bytes of memory because the pointer variable, whatever data type it maybe pointing to is always an unsigned integer as the address is always a positive integer, hence requiring 2 bytes of memory

7.option c is wrong i.e. a1->p1. Because a1 is not a pointer you can not refer its member through -> operator

8.The major difference between methods and functions is that methods called by the reference variables called objects where as the functions do not having any reference variables.

9.We can list as:

i. In classes the default scope is private whereas in structures u have public.equir

ii.Also u can define the scope according to is requirements in classes.

iii. In classes u can create functions and methods which is not so in the case of structures.

iv.You can also do operator overloading in case of classes which is not so in d case of structures.

v.Various other object - oriented features are found in classes and not in structures wherin u can create objects which is not possible in structures.

10.if both the base class and derived class can have the constructors,if the derived class is to call the constructor of its own using its object,it can.but when it calls its destructor,the compiler calls the destructor of base class.thats why the virtual destructor concept is coined. but there are no virtual constructors
Reblog this post [with Zemanta]

Mahesh Ramachandran at TCSImage by markhillary via Flickr

1. What are the different types of joins?
2. Explain normalization with examples.
3. What cursor type do you use to retrieve multiple
record sets?
4. Difference between a "where" clause and a "having"
clause
5. What is the difference between "procedure" and
"function"?
6. How will you copy the structure of a table without
copying the data?
7. How to find out the database name from SQL*PLUS
command prompt?
8. Tradeoffs with having indexes
9. Talk about "Exception Handling" in PL/SQL?
10. What is the difference between "NULL in C" and
"NULL in Oracle?"
11. What is Pro*C? What is OCI?
12. Give some examples of Analytical functions.
13. What is the difference between "translate" and
"replace"?
14. What is DYNAMIC SQL method 4?
15. How to remove duplicate records from a table?
16. What is the use of Analyzing the tables?
17. How to run SQL script from a Unix Shell?
18. What is a "transaction"? Why are they necessary?
19. Explain Normalization dn De normalization with
examples.
20. When do you get constraint violation? What are the
types of constraints?
21. How to convert RAW data type into TEXT?
22. Difference - Primary Key and Aggregate Key
23. How functional dependency is related to database
table design?
24. What is a "trigger"?
25. Why can a "group by" or "order by" clause be
expensive to process?
26. What are "HINTS"? What is "index covering" of a
query?
27. What is a VIEW? How to get script for a view?
28. What are the Large object types supported by
Oracle?
29. What is SQL*Loader?
30. Difference between "VARCHAR" and "VARCHAR2"
data types.
31. What is the difference among "dropping a table",
"truncating a table" and "deleting all records" from a
table.
32. Difference between "ORACLE" and "MICROSOFT ACCESS"
databases.
33. How to create a database link ?
Reblog this post [with Zemanta]