Mock Test

10 Questions | Attempts: 2084
Share

SettingsSettingsSettings
Mock Test - Quiz

The TCS mock test for campus season: Quantitative Test Verbal Test (Test on Written English skills) Test on Programming Language Proficiency Coding test (C Language).


Questions and Answers
  • 1. 

    Exodus - Antonym

    • A.

      Influx

    • B.

      Home-coming

    • C.

      Return

    • D.

      Restoration

    Correct Answer
    A. Influx
  • 2. 

    Ravi and Kumar are working on an assignment. Ravi takes 6 hours to type 32 pages on a computer, while Kumar takes 5 hours to type 40 pages. How much time will they take, working together on two different computers to type an assignment of 110 pages?

    • A.

      7 hours 30 minutes

    • B.

      8 hours

    • C.

      8 hours 15 minutes

    • D.

      8 hours 25 minutes

    Correct Answer
    C. 8 hours 15 minutes
  • 3. 

    Present ages of Sameer and Anand are in the ratio of 5 : 4 respectively. Three years hence, the ratio of their ages will become 11 : 9 respectively. What is Anand's present age in years?

    • A.

      24

    • B.

      27

    • C.

      40

    • D.

      Cannot be determined

    Correct Answer
    A. 24
  • 4. 

    Two pipes A and B can fill a tank in 15 minutes and 20 minutes respectively. Both the pipes are opened together but after 4 minutes, pipe A is turned off. What is the total time required to fill the tank?

    • A.

      10 min. 20 sec.

    • B.

      11 min. 45 sec.

    • C.

      12 min. 30 sec.

    • D.

      14 min. 40 sec.

    Correct Answer
    D. 14 min. 40 sec.
  • 5. 

    In C, if you pass an array as an argument to a function, what actually gets passed?

    • A.

      Value of elements in array

    • B.

      First element of the array

    • C.

      Base address of the array

    • D.

      Address of the last element of array

    Correct Answer
    C. Base address of the array
  • 6. 

    Which of the following statements mentioning the name of the array begins DOES NOT yield the base address? 1: When array name is used with the sizeof operator. 2: When array name is operand of the & operator. 3: When array name is passed to scanf() function. 4: When array name is passed to printf() function.

    • A.

      A

    • B.

      A,B

    • C.

      B

    • D.

      B,D

    Correct Answer
    B. A,B
  • 7. 

    Which of the following function sets first n characters of a string to a given character?

    • A.

      Strinit()

    • B.

      Strnset()

    • C.

      Strset()

    • D.

      Strcset()

    Correct Answer
    B. Strnset()
  • 8. 

    How will you print \n on the screen?

    • A.

      Printf("\n");

    • B.

      Echo "\\n";

    • C.

      Printf('\n');

    • D.

      Printf("\\n");

    Correct Answer
    D. Printf("\\n");
  • 9. 

    The length of a rectangular plot is 20 metres more than its breadth. If the cost of fencing the plot @ 26.50 per metre is Rs. 5300, what is the length of the plot in metres?

    • A.

      40

    • B.

      50

    • C.

      120

    • D.

      None of these

    Correct Answer
    D. None of these
  • 10. 

    C program to check whether an integer number is power of two (2) or not In this program, we will read an integer number and check whether the number is Power of Two (2) or not. For example number 12 is the power of two because it the multiple of 2. The logic to implement this program - Divide number by 2 until number is not equal to 1, if in the loop remainder is not equal to 0 then number is not power of 2 otherwise number is power of 2. First Run Enter an integer number: _____ ______ is a number that is the power of 2 Second Run Enter an integer number: _____ _____is not the power of 2. https://www.onlinegdb.com/ < COPY THE LINK IN A NEW TAB

    Correct Answer
    32,36

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Jun 06, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Jun 06, 2018
    Quiz Created by
    Rohit Lekkala
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.