Computer Science Bs-17 Lecturer past paper of kppsc Solved

Khyber Pakhtunkhwa Public Service Commission (KPPSC) conduct a test for Computer Science Lecturer Bs-17 on November-17-2021. The Paper was composed of 45 Mcqs and students have to submit the paper within one hour. Here we have uploaded some MCQs with answers. If you remember any MCQs that we missed or have not answered please contribute.

1. Minimum number of temporary variables needed to swap the contents of 2 variables is
    • 1
    • 2
    • 3
    • 4

2. When a variable of data type double is converted into float, then
    • Rounding takes place
    • Truncation takes place
    • The lower order bits are dropped
    • None of these

13. Any given truth table can be represented by a
    • Karnaugh map
    • Sum of product of Boolean expressions 
    • product of sum of Boolean expressions
    • All of these

20. The delay between job submission and job completion is called
    • Turnaround Time
    • In-process time
    • Response Time
    • Waiting Time

21. Which of the following techniques is preferable for transferring a large amount of data to and from a memory in a short time?
    • Programmed I/O
    • Interrupt - Driven I/O
    • DMA
    • None of these

22.
A software is to be developed for a system which has a small memory. The software should
    • Avoid using Recursion
    • Not use macros instead of functions
    • Both of these
    • none of these

23. A function that does the same operation on different data types is to be implemented using
    • Macros
    • overloading
    • Function templates
    • default arguments

24. The order in which operands are evaluated in an expression is predictable it the operator is 
    • *
    • +
    • %
    • &&

25. which of the following comments about object oriented design of software is not true?
    • objects inherit the properties of the class
    • classes are defined based on the attributes of objects
    • classes are always different
    • an object can belong to two classes

26. Design phase will usually be
    • Top-down
    • Bottom-up
    • Random
    • Centre fringing

27. Which of the following is a desirable property of a module?
    • High coupling
    • independency
    • low cohesiveness
    • Multi functional

28. The extent to which the software can continue to operate correctly despite the introduction of invalid input is called as
    • Reliability
    • Robustness
    • Fault-tolerance
    • Portability

29. Which of the following graph theoretic concept will be useful in software testing?
    • Hamiltonian circuit
    • Eulerian cycle
    • Cyclamate number
    • none of these

30. In unit testing of a module, it is found that for a set of test data, at the maximum 90% of the code alone were tested with the probability of success 0.9. The reliability of module is
    • greater than 0.9
    • Equal to 0.9
    • At most 0.81
    • At least 1/0.81

31. The programme volume of a source code that has 10 operators including six unique operators and 6 operands including 2 unique operands is
    • 48
    • 120
    • 720
    • insufficient data

32. A PL/SQL block can return data to SQL * Plus through
    • Local variable
    • Bind variables
    • Substitution variable
    • none of these

33. Which of the following SQL * Plus commands can be used to see the completion errors in a PL/SQL code?
    • TRACE
    • PROFILE
    • DEBUG
    • SHOW ERRORS

34. In SQL, 10/NULL will evaluate to
    • FALSE
    • -1
    • NULL
    • 10

35. Which of the following is illegal?
    • SELECT SYSDATE - SYSDATE FROM DUAL;
    • SELECT SYSDATE - (SYSDATE -2) FROM DUAL
    • SELECT SYSDATE (SYSDATE +2) FROM DUAL
    • none of these

36. which of the following SQL command can be used to add data to a database table?
    • INSERT
    • ADD
    • UPDATE
    • APPEND

38. The basic programming unit of a PL/SQL code is a
    • Procedure
    • Sub-program
    • Module
    • Block

39. Which of the following packages can be used to build dynamic SQL?
    • UTL_SQL
    • UTL_ALERT
    • DBMS_SQL
    • UTL_DSQL

44. Records that are displayed by a Form can be updated if the mode of the corresponding Data Block is
    • Query
    • Enter Query
    • Normal
    • Enter    

0 Answered this Question:

Unleash Your Voice, Share Your Thoughts: Join the Question-Answering Revolution