0% found this document useful (0 votes)
14 views

RPSC PROGRAMMER Unit Test - 04

Uploaded by

Sameer verma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

RPSC PROGRAMMER Unit Test - 04

Uploaded by

Sameer verma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

UNIT TEST - 4 BY-SUNIL YADAV SIR 1

CN(physical, Data link layer) , Java (class and object , interface)

1. The portion of physical layer that


7. In early ARPANET, which routing
interfaces with the media access method was used:
control sublayer is called ____ (a) Distance vector routing
(a) Physical signaling sublayer (b) Link state routing
(c) Least cost routing
(b) Physical data sublayer
(d) Flooding
(c) Physical address sublayer 8. W hich of the ‘following Ethernet
(d) Physical transport sublayer encoding has the highest
2. On what type of switching does redundancy’
internet work? (a) 1B2B (b) 4B5B
(a) Circuit (b) Bit (c) 5B6B (d) 8B10B
(c) Packet (d) Line 9. W hich of the following error
3. W hich of the following techniques detection techniques is based on
is used for transmitting digital binary division?
signal? (a) Checksum
(a) Amplitude modulation (b) Cyclic Redundancy Check (CRC)
(b) Frequency modulation (c) Simple parity check
(c) Pulse code modulation (d) Two-dimensional parity check
(d) Amplitude shift keying 10. The term UPnP protocol is a short
form for:
4. W hich of the following is an
advantage of computer networks? (a) Uniform Plug and Play
(a) Resource sharing (b) Unit Plug and Play
(b) Improving reliability and (c) Useful Plug and Play
availability
(c) Enhancing performance (d) Universal Plug and Play
(d) All of the above 11. W hich of this is not a network edge
5. In which layer of network device?
architecture, the secured socket (a) PC
layer (SSL) is used?
(b) Server
(a) Physical layer (b) Session layer
(c) Application layer (c) Smartphone
(d) Presentation layer (d) Switch
6. X. 21 is 12. The ____ is the physical path over
(a) A method of determining which which a message travels.
device has access to the
transmission medium at any time (a) Path
(b) A method access control (b) Protocol
technique or multiple access (c) Route
transmission media
(d) Medium
(c) Very common but oriented at
linked protocol issued to ISO 13. The structure of format of data is
(d) A network access standard for called:
connecting stations to a circuit (a) Syntax (b) Struct
switch network (c) Semantic (d) None of the above

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047


UNIT TEST - 4 BY-SUNIL YADAV SIR 2

14. Consider the following statements 21. ______ is a device that combines
about the functionality of an IP transmission from various I/O
based router. devices into one line
I. A router does not modify the IP (a) Modifier (b) Multiplexer
packets during forwarding. (c) Concentrator (d) Gateway
II. It is not necessary for a router 22. The amount of data transmitted in
to implement any routing a fixed amount of time is called
protocol.
(a) Refresh rate (b) Resolution
III. A router should reassemble IP (c) Bandwidth (d) Frequency
fragments if the MTU of the
23. File server is a _____ which is used
outgoing link is larger than the
size of the incoming IP packet. to store files received from various
client machines
W hich of the above statements
is/are TRUE? (a) Specialized computer system
(a) I and II only (b) I only (b) Modem
(c) II and III only (d) II only (c) Router
15. If a computer network cable is (d) Transponder
broken whole network goes down in 24. W hich of the following is a recovery
_____ topology technique?
(a) Star (b) Ring
(a) Public key encryption
(c) Mesh
(d) All options are correct (b) Shadow paging
16. Hierarchical topology is used to (c) Hash file organization
establish a network which is also (d) Indexed file organization
known as 25. Bit stuffing refers to
(a) Bus network (b) Star network (a) Inserting a ‘0’ in user stream to
(c) Tree network (d) Mesh network differentiate it with a flag
17. W hich of the following component
is responsible for network (b) Inserting a ‘0’ in flag stream to
communication in a computer avoid ambiguity
system? (c) Appending a nibble to the flag
(a) UPS (b) Ethernet card sequence
(c) SVGA card (d) SMPS (d) Appending a nibble to the user data
18. Speed of internet connection is stream
measured in
26. Dynamic routing protocol enable
(a) Kilo bits per second
routers to:
(b) Kilo Boolean per second
(a) Dynamically discover and maintain
(c) Meter per second
router
(d) None of these
(b) Distribute routing updates to other
19. TCP/IP is an example of
routers
(a) Communication protocol
(c) Reach agreement with other
(b) Networking protocol
routers about the network topology
(c) Data transfer protocol
(d) All of the above
(d) All options are correct
27. In Ethernet CSMA/CD, the special
20. In a computer network, which of
bit sequence is transmitted by
the following is a connecting
media access management to
device?
handle collision is called
(a) Router (b) Hub
(a) Preamble (b) Post amble
(c) Switch
(c) Jam (d) None of these
(d) All options are correct

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047


UNIT TEST - 4 BY-SUNIL YADAV SIR 3

28. Lightweight Directory Access }


Protocol is used for AAA()
(a) Routing the packets {
(b) Authentication System.out.print("3");
(c) Obtaining IP address }
(d) Domain name resolving public static void main(String[] java)
29. The encoding technique used to {
transmit the signal in giga Ethernet new AAA();new AAA();
technology over fiber optic medium }
is }
(a) Differential Manchester encoding (a) 2133
(b) Non Return to zero (b) 21313
(c) 4B/5B encoding (c) 2313
(d) 8B/10B encoding (d) 23131
30. W hat is the primary purpose of a 33. A blueprint for a software object is
VLAN? called
(a) Demonstrating the proper layout (a) Object
for network (b) Class
(b) Simulating a network (c) Instance
(c) To create a virtual private network (d) Encapsulation
(d) Segmenting a network inside a 34. W hat will be get output of the
switch or device following Java code ?
31. W hat is the result of compiling and protected class AAA {
executing the following class ? public static void main(String[] java)
class AAA {
{ String Name="sunil";
final int a=20; Name=Name+Name;
public static void main(String[] java) System.out.println(Name);
{ }
int b=30; }
System.out.println(a+b); (a) sunilsunil
} (b) sunil
} (c) run time exception
(a) It does not compile (d) compile time error
(b) It compile but throws an exception 35. which of the following statement about
at runtime a default branch in a switch statement
(c) It compile and output 50 is correct ?
(d) It compile and output 30 (a). all switch statements must
32. what will be the output of following include a default statement
Java code ? (b) the default statement is required
class AAA { to ba placed after all case statements
{ (c) unlike a case statement the
System.out.print("1"); default statement does not take a
} value
static (d) a default statements can only be
{ used when at least one case
System.out.print("2"); statement is present

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047


UNIT TEST - 4 BY-SUNIL YADAV SIR 4

program with constructors?


36. what will be the output of the following public class Constructor2
Java code ? {
class AAA { int count=10;
public static void main(String[] java) Constructor2(int count)
{ {
B obj=null; System.out.println("Count=" + count);
System.out.println(obj.a); }
}
} public static void main(String[] args)
class B {
{ Constructor2 con = new Constructor2();
int a; }
} }
(a) 0 (a) Count=0
(b) Garbage value (b) Count=10
(c) Compile time error (c) Compiler error
(d) Run time exception (d) None of the above
40. A constructor can call another
37. what is the use of ‘this’ keyword in Java? overloaded constructor using the ___
(a) used to hold the reference of the keyword in Java.
current object. (a) super
(b) holds object value (b) local
(c) used to create a new instance (c) con
(d) all of these (d)this
38. what will be the output of the following 41. what will me the output of the following
java code ? java code ?
class AAA { class Constructor3
public static void main(String[] java) {
{ int birds=10;
new B(); Constructor3()
}} {
class B this(20);
{ }
B() Constructor3(int birds)
{ { this.birds=50;
call(); System.out.println("Birds=" +birds);
} }
void call()
{ public static void main(String[] args)
System.out.println("method callled");}} {
(a) Compile error bcoz we cannot call Constructor3 con = new Constructor3();
method within constructor }
(b) method called }
(c) run time exception (a) Birds=0
(d) none of these (b) Birds=10
39. What is the output of the below Java (c) Birds=20

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047


UNIT TEST - 4 BY-SUNIL YADAV SIR 5

(d) Compile time error (b) empty message


(c) Compiler error
42. In Java, you can pass __ variables from (d) Runtime error / exception
one constructor to another overloaded
constructor. 47. A Java reference is comparable to ___ in
(a) local variables C language.
(b) static variables (a) Enum
(c) non-static variables (b) Structure
(d) local and static variables (c) Pointer
(d) None of the above
43. Choosing a suitable overloaded
constructor happens at ___ time in Java. 48. Choose the correct statements about
(a) Compile-time choosing a name for a class in Java.
(b) Run time (a) The class name can start with only a
(c) Depends on Compiler letter or underscore or dollar sign.
(d) None of the above (b) The class name can contain numbers
44. A "this" operator used inside a Java (c) The class name can not start with a
method refers to ___ variable. number
(a) Global variable (d) All of the above
(b) Method local variable 49. In a .java file, how many numbers of
(c) Instance variable public types namely class, interface
(d) None of the above or abstract can be managed?
45. In Java, local variables are stored in __ (a) 1
memory and instance variables are (b) 2
stored in ___ memory. (c) 3
(a) Stack, Stack (d) Any number
(b) Heap, Heap 50. Which is true about an anonymous
(c) Stack, Heap inner class?
(d) Heap, Stack (a) It can extend exactly one class and
46. What is the output of the below Java implement exactly one interface.
program? (b) It can extend exactly one class and
class Road can implement multiple interfaces.
{ (c) It can extend exactly one class or
static void show() implement exactly one interface.
{ (d) It can implement multiple interfaces
System.out.println("Inside static regardless of whether it also extends a
method."); class.
}
}

public class TestingMethods10


{
public static void main(String[] args)
{
Road.show();
}}
(a) Inside static method.

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047


UNIT TEST - 4 BY-SUNIL YADAV SIR 6

Join RPSC Programmer Offline/Online Batch Contact @ 9694473047

You might also like