Daily Exam Programmer 11-10-2024

Join us on Telegram


Q 1:

Consider the following data types in Java:

I. Int

II. Boolean

III. Double

IV. String

V. Array.

(1) Both (I) and (II) above
(2) (I), (II), (III) and (IV) above
(3) (I). (II) and (III) above
(4) All of the above
Correct Answer: (I). (II) and (III) above

Q 2: Station A needs to send a message consisting of 9 packets to Station B using a sliding window (window size 3) and go-back-n error control strategy. All packets are ready and immediately available for transmission. If every 5th packet that A transmits gets lost (but no acks from B ever get lost), then what is the number of packets that A will transmit for sending the message to B?
(1) 12
(2) 14
(3) 16
(4) 18
Correct Answer: 16

Q 3: Two computers C1 and C2 are configured as follows. Ci has IP address 203.197.2.53 and netmask 255.255.128.0. C2 has IP address 203.197.75.201 and netmask 255.255.192.0. Which one of the following statements is true?
(1) C1 and C2 both assume they are on the same network
(2) C2 assumes C1 is on same network, but C1 assumes C2 is on a different network
(3) C1 assumes C2 is on same network, but C2 assumes C1 is on a different network
(4) C1 and C2 both assume they are on different networks.
Correct Answer: C1 assumes C2 is on same network, but C2 assumes C1 is on a different network

Q 4: Which of these handles the exception when no catch is used?
(1) Default handler
(2) throw handler
(3) finally
(4) Java run time system
Correct Answer: Default handler

Q 5:

Which of the following is not the member of class?

(1) const function
(2) static function
(3) friend function
(4) virtual function
Correct Answer: friend function

Q 6:

Estimation of software development effort for organic software is COCOMO is

(1) E2.4(KLOC) 1.05 PM
(2) E3.4 (KLOC) 1.06 PM
(3) E2.0(KLOC) 1.05 PM
(4) E=2.4 (KLOC) 1.07 PM
Correct Answer: E2.4(KLOC) 1.05 PM

Q 7: Estimation of size for a project is dependent on
(1) Schedule
(2) Cost
(3) Time
(4) None of the above
Correct Answer: None of the above

Q 8: Which of the following attributes can be called a multivalues attributes in DBMS?
(1) Birth Date
(2) Age
(3) Gender
(4) College Degree
Correct Answer: College Degree

Q 9:

Which of these keywords is used to define interfaces in Java?

(1) interface
(2) intf
(3) ) static interface
(4) interface f
Correct Answer: interface

Q 10:

Which of these operators is used to generate an instance of an exception than can be thrown by using throw?

(1) new
(2) calloc
(3) malloc
(4) thrown
Correct Answer: new