0% found this document useful (0 votes)
2 views3 pages

Software Testing

Uploaded by

cs1styear007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Software Testing

Uploaded by

cs1styear007
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SAIVA BHANU KSHATRIYA COLLEGE

(Aruppukottai Nadargal Uravinmurai Pothu Abi Viruthi Trustuku Pathiyapattathu)


ARUPPUKOTTAI
QUESTION BANK
Name of the Department : Computer Science UG / PG : UG
Semester: IV Subject Code : SCSPS42
Name of the Subject : Software Testing

Section A (Multiple Choice Questions)

Unit I: (Introduction)
1. The input() function takes user's input as a
(a) integer (b) string (c) float (d) character
2. Comments start with which symbol?
(a) # (b) “ (c) // (d)*
3. Bitwise operator can be applied on which data type?
(a) integer (b) string (c) float (d)list
4. Which operator treats operand as a sequence of bits?
(a) Relational (b) Bitwise (c) Arithmetic (d) Logical
5. Which operator is also known as string repetition operator?
(a) + (b) * (c) & (d)^

Unit II: (Flow/Graphs and Path Testing)


6. Which part of if statement should be indented?
(a) The first statement (b) All the statements (c) Statements within the if block (d) None of these
7. Which statement indicates a NOP?
(a) pass (b) break (c) continue (d) jump
8. What would happen if we replace the break statement in the code with a 'continue'?
(a) It will stop executing (b) It would run forever (c) You will have to press Ctrl+C (d) There
would be no change
9. Which statement is used to terminate the execution of the nearest enclosing loop in which it
appears?
(a) pass (b) break (c) continue (d) jump
10. Which statement is used to stop the current iteration of the loop and continues with the next one?
(a) pass (b) break (c) continue (d) jump
Unit III: (Data Flow Testing)
11. Which statement invokes the function?
(a) Function definition (b) Function call (c) Function header (d) doc
12. If number of arguments in function definition andfunction call does not match, then which type of
error is returned?
(a) NameError (b) ImportError (c) TypeError (d) NumberError
13. __________of a variable determines the part of program in which it is accessible
(a) Scope (b) Lifetime (c) Data Type (d) Value
14. Arbitrary arguments have which symbol in the function definition before the parameter name?
(a) & (b) # (c) % (d) *
15. Modules are files saved with extension
(a)py (b) mod (c) mdl (d) imp
Unit IV: (Linguistic,Metrics)
16. If List [1,2,3,4,5) and we write List[3]=
(a)4 (b)2 (c) 3 (d) Error
[Link] tup= ("abc", "def", "ghi", "jkl"), then tup("def") will return
(a) 1 (b) 2 (c)0 (d) Error

[Link] slice operation will reverse the list?


SAIVA BHANU KSHATRIYA COLLEGE
(Aruppukottai Nadargal Uravinmurai Pothu Abi Viruthi Trustuku Pathiyapattathu)
ARUPPUKOTTAI
QUESTION BANK
(a) Lists[-1::] (b) numbers[::-1] (c) numbers[:-1:] (d) List[9:8:1]
[Link] data structure allows you to return multiple values from a function?
(a) List (b)Tuple (c) Dictionary (d)Set
[Link] data structure does not allow duplicate values!
(a) List (b) Tuple (c) Dictionary (d) Set
Unit V: (Logic Based Testing)
21. In the path C:\Students\ Under Graduate\Btech_cs.docx
(a) C: (b) Students (c) BTech_CS(d ) Under Graduate
22. The default access mode is
(a) г (b) w (c) rb (d) wb
23. By default, a new file is created in which directory
(a) root directory (b) current working directory (c) Python directory (d) D drive
24. Which method is used to read a single line from the file
(a) read() (b) readline() (c) readlines() (d) reads()
25. Which method is used to display entire contents of the file
(a) read() (b) readlines() (c) list() (d) all of these

Section B (7 mark Questions)

Unit I: (Introduction)
26. Explain about Decision Table in Software Testing
27. Elaborate the operators in Python
28. Discuss about input and output Statements
29. Discuss about literals, variables and constants
30. Discuss about basic Data Types in Python

Unit II: (Flow/Graphs and Path Testing)


31. Write about Jump statements of python
32. Write about While loop in python
33. Write about For loop in python
34. Write about range function, nested loop and else in loop
35. Difference between iterative and branching statement

Unit III: (Data Flow Testing)


36. Write about Function basics (definition, calling, return)
37. Discuss about modules in python
38. Discuss about String data type
39. Discuss about the following (i) Modules and Namespace(ii)Defining our own modules.
40. Discuss about dir() function and import statement

Unit IV: (Linguistic,Metrics)


41. Difference between list and tuple
42. Discuss about basic operation of tuple
43. Discuss about Nested Tuple
44. Difference between list and dictionary
45. Discuss about Dictionary Functions and Methods

Unit V: (Logic Based Testing)


SAIVA BHANU KSHATRIYA COLLEGE
(Aruppukottai Nadargal Uravinmurai Pothu Abi Viruthi Trustuku Pathiyapattathu)
ARUPPUKOTTAI
QUESTION BANK
46. Explain about Decision Table in Software Testing
47. Write about Boolean algebra in Software Testing
48. Write about File modes
49. Discuss about write(), write line(),write lines() methods in python
50. Discuss about read(), read line(),read lines() methods in python

Section C (10 mark Questions)

Unit I: (Basics of Python Programming & Python Arrays)


51. Discuss about Features of Python
52. What is array and explain its basic methods

Unit II: (Flow/Graphs and Path Testing)


53. Explain about if, elsif, else Statements
54. Explain about For loop

Unit III: (Data Flow Testing)


55. Explain about Function arguments
56. Explain about basic methods of String

Unit IV: (Linguistic,Metrics)


57. Discuss about list data type ,creation, insertion, deletion of items in list
58. Discuss about Dictionary data type ,creation, insertion, deletion of items in Dictionary

Unit V: (Logic Based Testing)


59. Elaborate about Decision Table and Structure
60. Discuss about Path Expressions

You might also like