Turisys Technologies Pvt Ltd. Set1

15 Questions | Total Attempts: 54

SettingsSettingsSettings
Please wait...
Turisys Technologies Pvt Ltd. Set1

Campus Recruitment at CMRIT, Bangalore


Questions and Answers
  • 1. 
    Six years ago, the ratio of the ages of Kunal and Sagar was 6 : 5. Four years hence, the ratio of their ages will be 11 : 10. What is Sagar's age at present?
    • A. 

      None of these

    • B. 

      16 years

    • C. 

      18 years

    • D. 

      20 years

    • E. 

      Cannot be determined

  • 2. 
    Sachin is younger than Rahul by 7 years. If their ages are in the respective ratio of 7 : 9, how old is Sachin?
    • A. 

      16 years

    • B. 

      18 years

    • C. 

      24.5 years

    • D. 

      28 years

    • E. 

      None of these

  • 3. 
    Salaries of Ravi and Sumit are in the ratio 2 : 3. If the salary of each is increased by Rs. 4000, the new ratio becomes 40 : 57. What is Sumit's salary?
    • A. 

      Rs. 17,000

    • B. 

      Rs. 20,000

    • C. 

      Rs. 25,500

    • D. 

      Rs. 38,000

  • 4. 
    If 0.75 : x : : 5 : 8, then x is equal to :
    • A. 

      1.12

    • B. 

      1.2

    • C. 

      1.25

    • D. 

      1.30

  • 5. 
    Find the odd man out   2, 5, 10, 17, 26, 37, 50, 64
    • A. 

      50

    • B. 

      26

    • C. 

      37

    • D. 

      64

  • 6. 
    Look carefully for the pattern, and then choose which pair of numbers comes next   8 11 21 15 18 21 22
    • A. 

      25 18

    • B. 

      25 21

    • C. 

      25 29

    • D. 

      24 21

    • E. 

      22 26

  • 7. 
    Find the number that fits somewhere into the middle of the series.    Look at this series : J14, L16, __, P20, R22, ... What number should fill the blank?
    • A. 

      S24

    • B. 

      N18

    • C. 

      M18

    • D. 

      T24

  • 8. 
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 9. 
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 10. 
    • A. 

      1

    • B. 

      2

    • C. 

      3

    • D. 

      4

  • 11. 
     What is the value of p? #include using namespace std; int main() { int p; bool a = true; bool b = false; int x = 10; int y = 5; p = ((x | y) + (a + b)); cout << p; return 0; }
    • A. 

      0

    • B. 

      2

    • C. 

      12

    • D. 

      16

  • 12. 
     Choose appropriate answer? #include <stdexcept> #include <limits> #include <iostream> using namespace std; void func(int c) { if (c < numeric_limits<char> :: max()) throw invalid_argument("MyFunc argument too large."); else { cout<<"Executed"; } } int main() { try { func(256); } catch(invalid_argument& e) { cerr << e.what() << endl; return -1; } return 0; }
    • A. 

      Invalid arguments

    • B. 

      Executed

    • C. 

      Error

    • D. 

      Runtime error

  • 13. 
    Which function is used for terminate the script execution in PHP?
    • A. 

      Break()

    • B. 

      Exit()

    • C. 

      Die()

    • D. 

      Quit()

  • 14. 
    /* Missing statements ? */ public class NewTreeSet extends java.util.TreeSet { public static void main(String [] args) { java.util.TreeSet t = new java.util.TreeSet(); t.clear(); } public void clear() { TreeMap m = new TreeMap(); m.clear(); } } Which two statements, added independently at beginning of the program, allow the code to compile?   1.  No statement is required 2.  import java.util.*; 3.  import.java.util.Tree*; 4.  import java.util.TreeSet; 5.  import java.util.TreeMap;
    • A. 

      1 only

    • B. 

      2 and 5

    • C. 

      3 and 4

    • D. 

      3 and 5

  • 15. 
    What will be the output of the program? class PassA { public static void main(String [] args) { PassA p = new PassA(); p.start(); } void start() { long [] a1 = {3,4,5}; long [] a2 = fix(a1); System.out.print(a1[0] + a1[1] + a1[2] + " "); System.out.println(a2[0] + a2[1] + a2[2]); } long [] fix(long [] a3) { a3[1] = 7; return a3; } }
    • A. 

      12 15

    • B. 

      15 15

    • C. 

      3 4 5 3 7 5

    • D. 

      3 7 5 3 7 5

Back to Top Back to top