April 1, 2016 0 Welcome to your Yipee Technology Online Aptitude Test Name Email Phone Number 1. Find the output of following c code. #include int main(){ printf("C\question\bank"); return 0; Cquestionbank cuestioank cuestionank cquestioank 2. Java: Which methods can access to private attributes of a class? Only instances of the same class Only Static methods of the same class Only classes available in the same package. Only methods those defined in the same class 3. Is there any difference between primary key and unique with NOT NULL condition? Depends on DBA No Yes 4. The PHP syntax is most similar to: VBScript Perl and C JavaScript 5. What will be printed if this is written in main() printf("%.0f", 2.89); 2 2.890000 3 2.89 6. A technique for direct search is Hashing Tree Search Linear Search Binary Search 7. If I don't provide any arguments on the command line, then the String array of main method will be empty or null or both? both null and empty it is empty, but not null depends on jre It is null, but not empty 8. What will be output if you will compile and execute the following c code? void main(){ int i=10; static int x=i; if(x==i) printf("Equal"); else if(x>i) printf("Greater than"); else printf("Less than"); } Less than Greater than Compiler error None of above Equal 9. Where Triggers are not allowed in MySQL database? After Delete none Before Insert Before Update 10. Which of the following statements is true? An exception can be thrown by throw keyword explicitly An exception can be thrown by throws keyword explicitly. 11. Which of the following statements is false about objects? Object is the super class of all other classes An instance of a class is an object Objects do not permit encapsulation Objects can access both static and instance data 12. PHP can be run on Microsoft Windows IIS(Internet Information Server): True False 13. How do you create an array in PHP? $cars = array("Volvo", "BMW", "Toyota"); $cars = "Volvo", "BMW", "Toyota"; $cars = array["Volvo", "BMW", "Toyota"]; 14. Answer True or False: main is keyword in Java. True False 15. What is the correct way to create a function in PHP? new_function myFunction() function myFunction() create myFunction() 16. What is return type of malloc() function? int* void* int void 17. #include void main(){ char *ptr=“abcd” char ch; ch = ++*ptr++; cout<<ch; } Output? b a d c 18. When using the POST method, variables are displayed in the URL: False True 19. Consider c code int main(){ printf("%d",sizeof(3.8)); return 0; } Which of the following is true? Compiler Error 4 8 None of these 10 20. Consider c++ code given bellow and give output class abc { void f(); void g(); int x; }; main() { cout<<sizeof(abc)<<endl; Compiler Error 4 8 12 21. Include files must have the file extension ".inc" False True 22. What is the output of this C code? void foo(float *); int main(){ int i = 10, *p = &i; foo(&i); } void foo(float *p) { printf("%f\n", *p); } 0.000000 10.000000 Undefined behaviour Compile time error 23. Size of void pointer is 1 byte 4 byte 8 byte 2 byte 24. Consider c code #define power(a) #a int main(){ printf("%d",*power(432)); return 0; } What will be printed? None of these 432 16 *”432” 52 25. What is the correct way to include the file "time.inc" in PHP? include file="time.inc" include file="time.inc"; include "time.inc"; include:"time.inc"; 26. SQL: How many objects will be created in the following code? String s1="Welcome"; String s2="Welcome"; String s3="Welcome"; Zero Two One Three 27. What does PHP stand for? Private Home Page Personal Hypertext Processor PHP: Hypertext Preprocessor 28. What is use of \r in c? used to insert a tab places cursor at the start of line used to insert a vertical tab places cursor at the end of line 29. Consider c++ code given bellow and give output using namespace std; main(){ short unsigned int i = 0; cout<<i--; 0 1 Compiler Error 65535 30. How do you get information from a form that is submitted using the "get" method? Request.QueryString; $_GET[]; Request.Form; Be sure to click Submit Quiz to see your results! Time's up