function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
priya bhawna shettypriya bhawna shetty 

General interview quesitons in salesforce

hello guys

pls help me out with this questions

1.what is a crono trigger? when and how do we use.

2.what is soql injection.

3.what r the winter 2013 special features did we notice so far as a salesforce developer..

4.if i write a soql quires without specifying LIMIT keyword ..how many records r iam going to retrieve thru database..

50 thousand records     ..          True or false

5.Does modify all and modify all data belongs to profiles?

6.what datatype is trigger.new,trigger.old,trigger.newmap and trigger.oldmap?

7.what is a user object?

8.whats the main use of @future annotation..

Ans.@future annotation is used to bypass governor limits            true or false

Thanks

Regards

Ashish_SFDCAshish_SFDC
1.what is a crono trigger? when and how do we use.

There is nothing called as Crono Trigger in Salesforce.
It might be possibly CronTrigger.
Cron Trigger is a trigger wrriten to be executed at a Scheduled Time,
See the link below,
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_crontrigger.htm

2.what is soql injection.
SQL injection is a common application security flaw that results from insecure construction of database queries with user-supplied data. When queries are built directly with user data inlined or concatenated directly with the query text, instead of using type-safe bind parameters, malicious input may be able to change the structure of the query to bypass or change application logic. SQL injection flaws are extremely serious. A single flaw anywhere in your application may allow an attacker to read, modify or delete your entire database.
Apex does not use SQL, but its own database query language, SOQL. SOQL is much simpler and more limited in functionality than SQL. Therefore, the risks are much lower for SOQL injection than for SQL injection, but the attacks are nearly identical to traditional SQL injection.
http://wiki.developerforce.com/page/Secure_Coding_SQL_Injection#SQL_and_SOQL_Injection

https://www.salesforce.com/us/developer/docs/pages/Content/pages_security_tips_soql_injection.htm

Ashish_SFDCAshish_SFDC
3.what r the winter 2013 special features did we notice so far as a salesforce developer..

This one is a personal question to know if the candidate is aware about the release and the new features introduced with it.

4.if i write a soql quires without specifying LIMIT keyword ..how many records r iam going to retrieve thru database..
50 thousand records     ..          True or false
False It will give an error. We have to limit the number of records displaed in a list on a page.


Ashish_SFDCAshish_SFDC
5.Does modify all and modify all data belongs to profiles?
Yes, It is an option that can be checked in a Profile, usually System Admins have View All Modify All on all Objects

6.what datatype is trigger.new,trigger.old,trigger.newmap and trigger.oldmap?

As per the below link, it is String,

http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_primitives.htm

Ashish_SFDCAshish_SFDC
7.what is a user object?
An SObject in Salesforce that contains Users details in form of user records.

8.whats the main use of @future annotation..
Ans.@future annotation is used to bypass governor limits            true or false
False.
It is not bypassing governor limits.
If we do not use @future in our code the System will try to run the code on the DML event and it will be dynamic.
These dynamic over the web (cloud) operations have limits and a single user or a single system or a single Org cannot use up all the online resources, hence governor limits come into existence.
@future methods or code does not execute dynamically but it executes in the background and the user and system can wait till the large operation is performed.
@future methods have higher governor limits as per design.
priya bhawna shettypriya bhawna shetty
hi ashish its so nice of you... you have my gratitude thaks and bye