APPSC Degree Lecturer Computer Science Exam Paper II - English
APPSC Degree Lecturer Computer Science Exam Paper II - English
APPSC Degree Lecturer Computer Science Exam Paper II - English
com
Toppersexam.com
Toppersexam.com
Question 2 : What language does a browser typically interpret to display information from
the World Wide Web ?
(A) Machine Code
(B) Assembly Language
(C) HTML
(D) C++
Toppersexam.com
Toppersexam.com
(A) Lines
(B) Function
(C) Instructions
(D) Code words
Question 10 : Many features of C were derived from an earlier language called _____ .
(A) B
(B) PASCAL
(C) BASIC
Toppersexam.com
Toppersexam.com
(D) FORTRAN
Question 12 : Ritchie and Brian Kernighan jointly carried out the development of C and that
version is _________ .
(A) K&R C
(B) ANSI C
(C) C99
(D) R&KC
Question 13 : If the class name is X, what is the type of its "This" pointer (in a nonstatic,
non – const member function) ?
(A) const X* const
(B) X * const
(C) X*
(D) X &
Toppersexam.com
Toppersexam.com
Question 16 : Which one of the following is not a fundamental data type in C++
(A) float
(B) string
(C) int
(D) wchar_t
Question 17 : Which of the following is a valid destructor of the class name "Country"
(A) int ~ Country ( )
(B) void Country ( )
(C) int ~ Country (Country obj)
(D) void ~ Country ( )
Question 20 : Which of the following is the most preferred way of throwing and handling
exceptions ?
(A) Throw by value and and catch by reference.
(B) Throw by reference and catch by reference.
(C) Throw by value and catch by value
(D) Throw the pointer value and provide catch for teh pointer type.
Toppersexam.com
Toppersexam.com
Question 23 : In the following class definition, which is the first line (if any) that causes a
compilation error: Select the one correct answer:
public class test{
public static void main (String args [ ]) {
char c; int i ;
c = 'A'; //1
i = c; //2
c = i + 1; //3
C++; //4
}
}
(A) The line lebeled 2.
(B) The line labeled 3.
(C) The line labeled 4.
(D) All the lines are correct and the program compiles
Question 24 : What gets printed on the standard output when the class below is compiled
and executed? Select the one correct answer:
public class Short Ckt {
public static void main (String args [ ]) {
int i = 0;
boolean t = true;
boolean f = false, D;
b = (t&&((i++)--0));
b = (f&&( ( i + = 2) > 0));
System.out.printIn();
}
}
(A) zero
Toppersexam.com
Toppersexam.com
(B) 1
(C) 2
(D) 3
Question 26 : What gets displayed on the screen when the following program is compiled
and run?
Select the one correct answer:
public class test {
public static void main (String args [ ]) {
boolean x = true;
int a;
if (x) a = x ? 1:2;
else a = x ? 3:4;
System.out.printIn(a);
}
}
(A) 1
(B) 2
(C) 3
(D) 4
Question 27 : What gets displayed on the screen when the following program is compiled
and run ?
Select the one correct answer :
public class test {
public static void main(Strings args [ ]) {
int x, y;
x = 5 >> 2;
y = x >>>2;
System.out.printIn (y);
}
}
(A) 5
Toppersexam.com
Toppersexam.com
(B) 2
(C) 80
(D) zero
Question 30 : In a spreadsheet program, the _______ contains related work sheets and
documents ?
(A) workbook
(B) column
(C) cell
(D) formula
Question 32 : Which one of the following is the correct extension of the Python file -
(A) py
(B) python
(C) p
Toppersexam.com
Toppersexam.com
Question 33 : Internet is
(A) a local computer network
(B) a worldwise network of computer
(C) an interconnected network of computers
(D) a world wide interconnected network of computers Which use a common protocol to
communicate with one another
(E) none of these
Toppersexam.com
Toppersexam.com
Question 38 : What was the first network that planted the seeds of internet ?
(A) RAPANET
(B) PARANET
(C) ARPANET
(D) APARANET
Question 40 : The coding language used to create documents for use on the World Wide
Web is_________.
(A) HTML
(B) HSMT
(C) HLTM
(D) All of these
Question 42 : ______ is the set of rules for exchanging files (text, graphic images, sound,
video, and other multimedia files) on the World Wide Web
(A) HTPP
(B) HPTP
(C) HTTP
(D) HTTPP
Toppersexam.com
Toppersexam.com
Toppersexam.com
Toppersexam.com
Question 51 : Which of the following is the advantage of the array data structure ?
(A) Elements of mixed data types can be stored.
(B) Easier to access the elements in an array
(C) Index of the first element starts from 1.
(D) Elements of an array cannot be sorted.
Toppersexam.com
Toppersexam.com
Question 54 : Which of the following is the size of int arr[9] assuming that int is of 4 bytes
?
(A) 9
(B) 36
(C) 35
(D) None of the above
Question 55 : Which one of the following is the process of inserting an element in the stack
?
(A) Insert
(B) Add
(C) Push
(D) None of above
Question 56 : When the user tries to delete the element from the empty stack then the
condition is aid to be a ________
(A) Underflow
(B) Garbage collection
(C) Overflow
(D) None of the above
Toppersexam.com
Toppersexam.com
Question 60 : Which of the following is true about linked list implementation of stack ?
(A) In push operation. if new nodes are inserted at the beginning of linked list, then in pop
operation, nodes must be removed from end
(B) In push operation, if new nodes are inserted at the end, then in pop operation, nodes
must be removed from the beginning
(C) Both of the above
(D) None of the above
Question 61 : Consider the following pseudocode that uses a stack. What is output for input
"letsfinde" ?
declare a stack of characters
While (there are more characters in the word to read)
{
read a character
push the character on the stack
}
pop a character off the stack
write the character to the screen
}
(A) letsfindcletsfindc
(B) cdniftstel
(C) letsfindc
(D) cdniftstelcdniftstel
Toppersexam.com
Toppersexam.com
Question 63 : Which of the following language was developed as the first purely object
programming language ?
(A) Small Talk
(B) C++
(C) Kotlin
(D) Java
Toppersexam.com
Toppersexam.com
Toppersexam.com
Toppersexam.com
Question 74 : This component is required to process data into information and consists of
integrated circuits
(A) CPU
(B) RAM
(C) ROM
(D) Hard disks
Question 76 : Which data communication method is used to transmit the data over a serial
communication link ?
(A) Simplex
(B) Half-duplex
(C) Full duplex
(D) All of above
Question 77 : The first generation of computers available was based on the bit micro
processors .
(A) 4
(B) 8
(C) 16
(D) 64
Toppersexam.com
Toppersexam.com
Question 82 : Two or more computers connected to each other for sharing information form
a
(A) router
(B) server
(C) network
(D) tunnel
(E) pipeline
Question 83 : Several computers linked to a server to share programs and storage space in
________
(A) grouping
Toppersexam.com
Toppersexam.com
(B) library
(C) integrated system
(D) network
(E) none of these
Question 84 : Servers are computers that provide resources to the other computers
connected to a ____
(A) network
(B) mainframe
(C) super computer
(D) clients
(E) none of these
Toppersexam.com
Toppersexam.com
Question 91 : Which statement is used to delete all rows in a table without having the action
logged ?
(A) DELETE
(B) REMOVE
(C) DROP
(D) TRUNCATE
Question 93 : What type of search algorithm does not use any additional information about
the problem other than the problem definition itself ?
(A) Informed Search
Toppersexam.com
Toppersexam.com
Question 94 : Which search algorithm uses a heuristic function to guide the search towards
the goal state ?
(A) A* Search
(B) Breadth-First Search
(C) Depth-First Search
(D) Uniform Cost Search
Question 95 : In which search algorithm is the search space explored level by level ?
(A) Depth-First Search
(B) A* Search
(C) Breadth-First Search
(D) Greedy Best-First Search
Question 96 : Which uninformed search algorithm is not guaranteed to find the optimal
solution but is memory-efficient ?
(A) Breadth-First Search
(B) Depth-First Search
(C) Uniform Cost Search
(D) A* Search
Question 97 : What type of search is used in games where two players take turns, such as
chess or tic-tac-toe ?
(A) Informed Search
(B) Uninformed Search
(C) Adversarial Search
(D) Heuristic Search
Question 98 : In adversarial search, what is the term for the initial state of the game ?
(A) Max Node
(B) Min Node
Toppersexam.com
Toppersexam.com
Question 100 : What is the primary objective of the minimax algorithm in adversarial
search ?
(A) To maximize the player's score
(B) To minimize the opponent's score
(C) To find the optimal move for the player
(D) To find the optimal move for the opponent
Question 101 : Which informed search algorithm guarantees that it will find the optimal
solution if a solution exists and the heuristic is admissible ?
(A) A* Search
(B) Breadth-First Search
(C) Depth-First Search
(D) Hill Climbing
Question 102 : Which search algorithm is prone to getting stuck in local optima and is not
suitable for certain types of problems ?
(A) Greedy Best-First Search
(B) A* Search
(C) Depth-First Search
(D) Simulated Annealing
Question 103 : In A* search, what does the total cost of a path consist of ?
(A) Only the cost to reach the current state
(B) The cost to reach the current state and an estimated cost to reach the goal
Toppersexam.com
Toppersexam.com
Question 104 : Which search algorithm is guaranteed to find the shallowest solution in the
search tree first ?
(A) Breadth-First Search
(B) Depth-First Search
(C) Uniform Cost Search
(D) A* Search
Question 105 : What is the primary drawback of using depth-first search in uninformed
search ?
(A) It requires a lot of memory.
(B) It may not find the optimal solution.
(C) It is slow in finding solutions.
(D) It is not suitable for search problems
Question 106 : Which informed search algorithm can be used when you have no
information about the problem domain ?
(A) A* Search
(B) Hill Climbing
(C) Greedy Best-First Search
(D) Depth-First Search
Question 107 : Which search algorithm explores the most promising nodes first based on a
heuristic evaluation function ?
(A) Uniform Cost Search
(B) Depth-First Search
(C) Greedy Best-First Search
(D) Breadth-First Search
Question 108 : In adversarial search, what is the primary goal of the minimizing player
(Min) ?
(A) To maximize their own score
Toppersexam.com
Toppersexam.com
Question 109 : Which uninformed search algorithm uses a Last-In-First-Out (LIFO) data
structure for exploration ?
(A) Breadth-First Search
(B) Depth-First Search
(C) Uniform Cost Search
(D) A* Search
Question 110 : What is the primary advantage of using heuristics in search algorithms ?
(A) It guarantees finding the optimal solution.
(B) It reduces memory consumption.
(C) It speeds up the search process.
(D) It eliminates the need for a goal state
Question 111 : In adversarial search, what is the terminal state of the game ?
(A) Max Node
(B) Min Node
(C) Root Node
(D) Leaf Node
Question 112 : Which search algorithm combines elements of both breadth-first and depth-
first search strategies ?
(A) Uniform Cost Search
(B) Iterative Deepening Depth-First Search
(C) A* Search
(D) Greedy Best-First Search
Question 113 : Which logic deals with propositions as a whole and not with the internal
structure of statements ?
(A) First-Order Logic
(B) Propositional Logic
Toppersexam.com
Toppersexam.com
Question 114 : In propositional logic, how many truth values does a proposition have ?
(A) One
(B) Two
(C) Three
(D) Four
Question 115 : Which logical connective represents logical AND in propositional logic ?
(A) ∧
(B) ∨
(C) ¬
(D) →
Question 116 : What is the negation of the statement "It is not raining" in propositional
logic ?
(A) It is raining
(B) It is snowing
(C) It is sunny
(D) It is windy
Question 118 : What is the result of the expression (P ∧ Q) ∨ (¬P ∧ R) when P is true, Q is
false, and R is true in propositional logic ?
(A) True
(B) False
(C) Cannot be determined
(D) None of the above
Toppersexam.com
Toppersexam.com
Question 119 : Which logic extends propositional logic by allowing variables, quantifiers,
and predicates ?
(A) Predicate Logic
(B) First-Order Logic
(C) Second-Order Logic
(D) Higher-Order Logic
Question 122 : In predicate logic, which quantifier expresses "there exists" or "there is at
least one" ?
(A) ∀ (Universal quantifier)
(B) ∃ (Existential quantifier)
(C) ¬ (Negation)
(D) ∧ (Conjunction)
Toppersexam.com
Toppersexam.com
Question 124 : In predicate logic, what is the result of ¬(∀x P(x)) when there exists at least
one x for which P(x) is false ?
(A) True
(B) False
(C) Cannot be determined
(D) None of the above
Question 126 : What is the contrapositive of the statement "If it is sunny, then I will go for a
walk" ?
(A) If I will go for a walk, then it is sunny
(B) If I will not go for a walk, then it is not sunny
(C) If it is not sunny, then I will not go for a walk
(D) If I will go for a walk, then it is not sunny
Question 127 : Which logic is used for expressing statements about objects and their
properties ?
(A) Propositional Logic
(B) First-Order Logic
(C) Modal Logic
(D) Temporal Logic
Question 128 : In predicate logic, what is the symbol used for logical AND ?
(A) ∧
(B) ∨
(C) ¬
(D) →
Toppersexam.com
Toppersexam.com
Question 129 : In predicate logic, what does a variable like "x" represent ?
(A) A specific object
(B) A predicate
(C) A truth values
(D) A placeholder for an object
Question 131 : Which logic is commonly used in AI to represent knowledge about the
world and make logical inferences ?
(A) Propositional Logic
(B) Predicate Logic
(C) Modal Logic
(D) Fuzzy Logic
Question 132 : In predicate logic, what does the existential quantifier (∃) denote ?
(A) "For all"
(B) "There exists"
(C) "Not exists"
(D) "Implies"
Question 133 : What is the term for uncertainty that arises due to lack of information or
incomplete knowledge ?
(A) Epistemic Uncertainty
(B) Aleatoric Uncertainty
(C) Deterministic Uncertainty
(D) Probabilistic Uncertainty
Toppersexam.com
Toppersexam.com
Question 134 : Which AI technique deals with representing and reasoning about uncertain
information using probability theory ?
(A) Fuzzy Logic
(B) Bayesian Networks
(C) Expert Systems
(D) Genetic Algorithms
Question 135 : In Bayesian networks, what does a directed edge between two nodes
represent ?
(A) A causal relationship from the parent node to the child node
(B) A random event
(C) A logical OR relationship
(D) A logical AND relationship
Question 136 : Which term refers to the probability distribution of a variable given the
values of its parent variables in a Bayesian network ?
(A) Joint Probability
(B) Conditional Probability
(C) Marginal Probability
(D) Prior Probability
Question 137 : What does the term "Bayesian" in Bayesian networks refer to ?
(A) It refers to the use of statistical methods
(B) It refers to the use of prior knowledge or beliefs
(C) It refers to the use of neural networks
(D) It refers to the use of decision trees
Toppersexam.com
Toppersexam.com
Question 139 : In Fuzzy Logic, what is the membership function used to represent ?
(A) The degree of truth or membership of a value in a fuzzy set
(B) The probability of an event occurring
(C) The conditional probability of an event
(D) The likelihood of an event
Question 141 : In decision theory, what is the term for a measure of how much an agent
values different outcomes ?
(A) Utility
(B) Probability
(C) Entropy
(D) Certainty Factor
Question 143 : What is the primary objective in Markov Decision Processes (MDPs) ?
(A) Minimizing uncertainty
(B) Maximizing utility or reward
(C) Finding conditional probabilities
(D) Solving linear equations
Toppersexam.com
Toppersexam.com
Question 144 : In decision theory, what is the term for a situation where an agent's
preferences violate the transitive property ?
(A) Rationality
(B) Intransitivity
(C) Risk Aversion
(D) Bayesian Updating
Question 145 : Which AI technique is often used in optimization problems with uncertain or
noisy objective functions ?
(A) Fuzzy Logic
(B) Genetic Algorithms
(C) Bayesian Networks
(D) Markov Decision Processes
Question 146 : What does the term "epistemic" in epistemic uncertainty refer to ?
(A) It refers to inherent randomness.
(B) It refers to beliefs or knowledge.
(C) It refers to linguistic terms.
(D) It refers to the Markov property.
Question 147 : Which AI technique is used for modeling and reasoning about decision
problems involving multiple agents with conflicting interests ?
(A) Bayesian Networks
(B) Game Theory
(C) Fuzzy Logic
(D) Genetic Algorithms
Question 148 : In Bayesian networks, what does the term "conditional independence" mean
?
(A) Two variables are statistically dependent.
(B) Two variables are unrelated.
(C) Two variables have a cause-and-effect relationship.
(D) Two variables have the same probability distribution
Toppersexam.com
Toppersexam.com
Question 149 : What is the primary goal of a utility function in decision theory ?
(A) To measure uncertainty
(B) To represent beliefs
(C) To quantify the desirability of outcomes
(D) To calculate conditional probabilities
Question 150 : Which AI technique involves the use of rules and knowledge to make
inferences under uncertainty ?
(A) Fuzzy Logic
(B) Genetic Algorithms
(C) Expert Systems
(D) Markov Decision Processes
Toppersexam.com
Toppersexam.com
Question 11 :
Correct Answer:A
Question 12 :
Correct Answer:A
Question 13 :
Correct Answer:D
Question 14 :
Correct Answer:B
Question 15 :
Correct Answer:D
Question 16 :
Correct Answer:A
Question 17 :
Correct Answer:B
Question 18 :
Correct Answer:D
Question 19 :
Correct Answer:A
Question 20 :
Correct Answer:B
Question 21 :
Correct Answer:A
Question 22 :
Correct Answer:D
Question 23 :
Correct Answer:A
Question 24 :
Correct Answer:B
Question 25 :
Correct Answer:C
Question 26 :
Correct Answer:A
Toppersexam.com
Toppersexam.com
Question 27 :
Correct Answer:D
Question 28 :
Correct Answer:A
Question 29 :
Correct Answer:D
Question 30 :
Correct Answer:A
Question 31 :
Correct Answer:B
Question 32 :
Correct Answer:A
Question 33 :
Correct Answer:D
Question 34 :
Correct Answer:C
Question 35 :
Correct Answer:B
Question 36 :
Correct Answer:A
Question 37 :
Correct Answer:C
Question 38 :
Correct Answer:C
Question 39 :
Correct Answer:D
Question 40 :
Correct Answer:A
Question 41 :
Correct Answer:A
Question 42 :
Correct Answer:C
Toppersexam.com
Toppersexam.com
Question 43 :
Correct Answer:B
Question 44 :
Correct Answer:C
Question 45 :
Correct Answer:C
Question 46 :
Correct Answer:B
Question 47 :
Correct Answer:C
Question 48 :
Correct Answer:C
Question 49 :
Correct Answer:A
Question 50 :
Correct Answer:C
Question 51 :
Correct Answer:B
Question 52 :
Correct Answer:C
Question 53 :
Correct Answer:C
Question 54 :
Correct Answer:B
Question 55 :
Correct Answer:C
Question 56 :
Correct Answer:A
Question 57 :
Correct Answer:D
Question 58 :
Correct Answer:B
Toppersexam.com
Toppersexam.com
Question 59 :
Correct Answer:A
Question 60 :
Correct Answer:D
Question 61 :
Correct Answer:B
Question 62 :
Correct Answer:C
Question 63 :
Correct Answer:A
Question 64 :
Correct Answer:C
Question 65 :
Correct Answer:C
Question 66 :
Correct Answer:D
Question 67 :
Correct Answer:B
Question 68 :
Correct Answer:C
Question 69 :
Correct Answer:D
Question 70 :
Correct Answer:C
Question 71 :
Correct Answer:D
Question 72 :
Correct Answer:A
Question 73 :
Correct Answer:A
Question 74 :
Correct Answer:A
Toppersexam.com
Toppersexam.com
Question 75 :
Correct Answer:A
Question 76 :
Correct Answer:C
Question 77 :
Correct Answer:B
Question 78 :
Correct Answer:C
Question 79 :
Correct Answer:C
Question 80 :
Correct Answer:A
Question 81 :
Correct Answer:D
Question 82 :
Correct Answer:C
Question 83 :
Correct Answer:D
Question 84 :
Correct Answer:A
Question 85 :
Correct Answer:C
Question 86 :
Correct Answer:D
Question 87 :
Correct Answer:B
Question 88 :
Correct Answer:C
Question 89 :
Correct Answer:D
Question 90 :
Correct Answer:A
Toppersexam.com
Toppersexam.com
Question 91 :
Correct Answer:D
Question 92 :
Correct Answer:B
Question 93 :
Correct Answer:C
Question 94 :
Correct Answer:A
Question 95 :
Correct Answer:C
Question 96 :
Correct Answer:B
Question 97 :
Correct Answer:C
Question 98 :
Correct Answer:C
Question 99 :
Correct Answer:B
Question 100 :
Correct Answer:A
Question 101 :
Correct Answer:A
Question 102 :
Correct Answer:A
Question 103 :
Correct Answer:B
Question 104 :
Correct Answer:A
Question 105 :
Correct Answer:B
Question 106 :
Correct Answer:C
Toppersexam.com
Toppersexam.com
Question 107 :
Correct Answer:C
Question 108 :
Correct Answer:B
Question 109 :
Correct Answer:B
Question 110 :
Correct Answer:C
Question 111 :
Correct Answer:D
Question 112 :
Correct Answer:B
Question 113 :
Correct Answer:B
Question 114 :
Correct Answer:B
Question 115 :
Correct Answer:A
Question 116 :
Correct Answer:A
Question 117 :
Correct Answer:A
Question 118 :
Correct Answer:A
Question 119 :
Correct Answer:B
Question 120 :
Correct Answer:C
Question 121 :
Correct Answer:B
Question 122 :
Correct Answer:B
Toppersexam.com
Toppersexam.com
Question 123 :
Correct Answer:C
Question 124 :
Correct Answer:A
Question 125 :
Correct Answer:D
Question 126 :
Correct Answer:C
Question 127 :
Correct Answer:B
Question 128 :
Correct Answer:A
Question 129 :
Correct Answer:D
Question 130 :
Correct Answer:C
Question 131 :
Correct Answer:B
Question 132 :
Correct Answer:B
Question 133 :
Correct Answer:A
Question 134 :
Correct Answer:B
Question 135 :
Correct Answer:A
Question 136 :
Correct Answer:B
Question 137 :
Correct Answer:B
Question 138 :
Correct Answer:B
Toppersexam.com
Toppersexam.com
Question 139 :
Correct Answer:A
Question 140 :
Correct Answer:B
Question 141 :
Correct Answer:A
Question 142 :
Correct Answer:B
Question 143 :
Correct Answer:B
Question 144 :
Correct Answer:B
Question 145 :
Correct Answer:B
Question 146 :
Correct Answer:B
Question 147 :
Correct Answer:B
Question 148 :
Correct Answer:B
Question 149 :
Correct Answer:C
Question 150 :
Correct Answer:C
Toppersexam.com