Aptitude - Programming Language
By Team Innovation Instigators
Email *
11. Which of the following functions is used to get the length of a string in PHP? *
23. class Main {
    public static void main(String args[]) {  
             System.out.println(fun());
    }
 
    int fun()
    {
      return 20;
    }
}
what is the output of the above code 
*
31. What is the purpose of the def keyword?
*
40. What is the key characteristic of a tuple?
*
32. Which keyword is used to skip the rest of the code in the current iteration of a loop and move to the next iteration? *
39. Which of the following function is more appropriate for reading in a multi-word string?
*
19. Which of the following is true for a circular queue?
*
37. Which two are valid constructors for Thread?
1.Thread(Runnable r, String name)
2.Thread()
3.Thread(int priority)
4.Thread(Runnable r, ThreadGroup g)
5.Thread(Runnable r, int priority)
*
9. Which of the following is the correct way to define a function in PHP?
*
Enter your name? *
15. What is the result of the following Python expression?
    python
   print(10 // 3)
*
28. How many times the program will print "Innovation Instigators" ?
#include<stdio.h>

int main()
{
    printf("Innovation Instigators");
    main();
    return 0;
}
*
33. Which loop in Python is used for iterating over a sequence until a specified condition is False?
*
27. Which of the following is the correct usage of conditional operators used in C?
*
29. What is stderr ?
*
8. What will be the output of the following code?
   
 #include<stdio.h>
 int main(){
   printf("%d", 5/2);
 return 0;
 }
*
Enter e-mail *
3. Number of primitive data types in Java are ?
*
2. What is the use of final keyword in Java?
*
26.Which of the following is the correct order of evaluation for the below expression?
z = x + y * z / 4 % 2 - 1

*
17. In C++, which of the following operators is used to allocate memory dynamically?
*
 \ 1. Linear search is also called
*
22. class Test {
  int i;
}
class Main {
   public static void main(String args[]) {
     Test t;
     System.out.println(t.i);
}

*
13. Which of the following is NOT a type of linked list? *
5. When is the object created with new keyword?
*
14. What does the following Python code do?
    python
    x = "Python"
    print(x[0:3])
*
12. In a binary tree, what is the maximum number of nodes at level l?
*
10. What is the result of the following code?
   
    int a = 10;
    a++;
    printf("%d", a);
*
18. Which of the following algorithms is used to find the shortest path in a graph?
*
30. Which header file should be included to use functions like malloc() and calloc()? *
16. In C, which header file is required to use malloc()?
*
25. In which numbering system can the binary number 1011011111000101 be easily converted to? *
6. Who invented C++?
*
36. What is the name of the method used to start a thread execution? *
21. #include <stdio.h>

int main() {
    int i;
    if (printf("0"))
        i = 3;
    else
        i = 5;
    printf("%d", i);
    return 0;
}
What is the output of above program?
*
24. #include <stdio.h>

int main()
{
    int i;
   
    i = 1, 2, 3;
    printf("%d", i);
   
    return 0;
}

*
38. Which of the following function is used to find the first occurrence of a given string in another string? *
7. Which of the following is the correct syntax of including a user defined header files in C++?
*
35. Which of the following is a correct way to iterate over a list in reverse order?
*
34. What does the range function return when used with two arguments, start and stop?
*
4. When an array is passed to a method, what does the method receive?
*
20.#include <stdio.h>
#define PRINT(i, limit) do
                        {
                            if (i++ < limit)
                            {
                                printf("Innovation instigators\\n");
                                continue;
                            }
                        }while(0);

int main()
{
    int i = 0;
    PRINT(i, 3);
    return 0;
}

How many times Innovation instigators is printed in the above program ?
*
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.