Consider the following recursive function $F()$ in Java that takes an integer value and returns a string value:
public static String F(int N){
if (N <= 0) return "-";
return F(N - 3) + N + F(N - 2) + N;
}
The value of $F(5)$ is:
Previous 10 Questions — UGC NET Computer Science Nov 2021 (Paper II)
Nearest first
1
2
What does the following function $f()$ in C return?int f(unsigned int N){ unsigned int counter = 0; while (N >…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Which of the statements given below is/are correct?It is always important and useful to include an $alt$ attribut…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Next 10 Questions — UGC NET Computer Science Nov 2021 (Paper II)
Ascending by ID
1
2
3
4
5
6
7
8
9
10
Match List I with List II:List IList IIA. JNDII. Runtime support for running Java programB. RMIII. The API in support o…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Match List I with List IIList IList IIA. ImperativeI. Declarative, clausal representation, theorem provingB. Object-ori…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Suppose you have eight black and white images taken with a $1$-megapixel camera and one $8$-color image taken by an $8$…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Which of the statements given below are correct?The midpoint or Bresenham algorithm for rasterizing lines is optimized …
Topic: UGC NET Computer Science Nov 2021 (Paper II)
What is the transformation matrix $M$ that transforms a square in the $xy$-plane defined by $(1,1)^T,(-1,1)^T,(-1…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Suppose a Bezier curve $P(t)$ is defined by the following four control points in the $xy$-plane:$P_0=(-2,0),\ P_1=(-2,4…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
Given below are two statements:Statement I: The maximum number of sides that a triangle might have when clipped to a re…
Topic: UGC NET Computer Science Nov 2021 (Paper II)
In software testing, beta testing is the testing performed by ____________.
Topic: UGC NET Computer Science Nov 2021 (Paper II)
The V components in MVC are responsible for:
Topic: UGC NET Computer Science Nov 2021 (Paper II)
In software engineering, what kind of notation do formal methods predominantly use?
Topic: UGC NET Computer Science Nov 2021 (Paper II)