Skip to main content

Programming Practice and Techniques – PPT Quiz Bundle

Chapter : 1
1. Arrange the activities of a problem solving process in order.
  1. Defining the problem.
  2. Documenting.
  3. Preparing a program flowchart.
  4. Preparing an algorithm.
  5. Debugging and testing.
  6. Coding the program.
2. A programming process is a
  1. System development process
  2. Coding process.
  3. Testing process.
  4. Problem solving process.
3. A computer program is a means to an end. Which of the following about “the end” is true?
  1. The end will normally be information needed to solve a program.
  2. The end will normally be input needed to solve the problem.
  3. The end will normally be process needed to solve the problem.
  4. None of the above.
4. When one is true
  1. The programming process is problem solving process.
  2. The programming process is a data transformation process.
  3. The programming process is a coding process.
  4. The programming process is problem defining process.
5. In a Programming process what the programmer must do carry out before moving from one activity to the next?
a. Documenting procedures
b. Model design activity
c. Checking procedure
d. Compilation
6. Which of the following is or are included in problem definition
a. Output
b. What is the output is look like
c. Input
d. Processing algorithm
7. In the problem definition, which of the following do we use to describe the output that is to be printed?
a. Print chart
b. Display system layout sheet
c. A record format form
d. All of the above
8. In the problem definition, which of the following do we use to describe the output that is to be displayed on VDT?
a. Print chart
b. Display system layout sheet
c. A record format form
d. All of the above
9. Who usually provides the problem definition to a programmer?
a. The system analyst
b. The program manager.
c. The project manager.
d. The system Engineer.
10. Which of the following defines an algorithm?
  1. It is a graphical representation of a program flow.
  2. It is the documentation of program logic.
  3.  It is a list of the sequence of steps required to solve the problem.
  4. It is the actual program unit.
11. What is used for keeping track of the number of times something occurs in program?
  1. A Loop
  2. A Counter.
  3. A Decision Construct
  4. None of them.
12. What do you mean by incrementing?
  1. Squaring
  2. Adding one.
  3. Subtracting One
  4. Setting initial value.
13. What do we can an error that occurs while a program is being executed?
  1. Syntax error
  2. Logical error
  3. Execution time error
  4. Bug
14. Which of the following procedure can you use to check an algorithm?
  1. Debugging by automated debugger?
  2. Desk checking
  3. Inspection
  4. Consultation
15. Which of the following defines an algorithm?
  1. It is a symbolic representation an algorithm
  2. It is the documentation of program logic
  3. It is a list of the sequence of steps required to solve the problem.
  4. It is the actual program code.
16. What does the following notation mean?
acounterß0
  1. destroying the memory location used by acounter.
  2. Replacing the value currently in memory location used by the value zero.
  3. decrementing acounter
  4.  incrementing acounter.
17.A source program written in High-level language is translate into ____________using a special translator program?
  1. Object program
  2. Assmbly program
  3. IL program
  4. Byte code.
18.Expand Following
FORTAN
BASIC
COBOL
19. Violation of the rules of particular programing language creates whats?
  1. Syntax error
  2. Logical error
  3. Execution time error
  4. Bug
20. Which of the following are translator program?
  1. Compiler
  2. Assembler
  3. Generator
  4. Interpreter
21. During testing what type or types or error are eliminated?
  1. Syntax error
  2. Logical error
  3. Execution time error
  4. Bug
22.A compiler is a____________
  1. Software development environment
  2. Code editor
  3. Translation program
  4. System program
23. Which of the following translation programs process the entire source program as a unit?
  1. Compiler
  2. Assembler
  3. Generator
  4. Interpreter
Chapter-2

1. Today in developing a program, major emphasis is given on which aspects?
  1. Efficient algorithms and techniques to save computer time and memory.
  2. Easily understood logic
  3. Easy maintenance
  4. Low usage of costly disk space.
Answer: B,C
2. Which of the following the term structured programming refers to?
  1. A collection of techniques to follow for program developing.
  2. A collection of library code to help programming.
  3. A collection hardware for fast programming
  4. A collection of efficient logic
Answer:A
3. The main transfers controls to a sub module to perform a task. What happens when the sub module has completed its task?
  1. The sub module closes the program
  2. The sub module returns control to the main module
  3. The sub module waits idly for the main take the control task
  4. The sub module transfers control the underlying operating system.
Answer:B
4. Which type of subroutines is frequently used for complex processing that is needed by many users, such as mathematical or statically routines or the sorting the files.
  1. Internal
  2. External.
Answer:B
5. The top down approach is a useful technique in
  1. Planning a modular programming
  2. Writing a smart program code
  3. A object oriented programming
  4. Report writing
Answer:A
6. What do we do to identify a module?
  1. A module is given a abbreviated name
  2. A module is given a name which reflects what the module does and a number is included with name
  3. A module is given name with a special prefix
  4. None of the above.
Answer:B
7. A structure chart is a commonly used planning tool in
  1. Top-down programming
  2. Object oriented programming
  3. Procedural programming
  4. Data processing
Answer:A
8. Find out the following logic patterns or structures are identified as sufficient for any structured programming?
  1. The sequence structure
  2. The loop structure
  3. The selection structure
  4. Control structure
Answer:A,B,C
9. EOF means
  1. There is no record in the file
  2. The file does not exits
  3. The file is not accessible
  4. The  file can not be created
Answer:A
10. In modular programming, the program is broken down into
  1. Files
  2. Projects
  3. Instructions
  4. Modules
Answer:D
11. Module programming is implemented by
  1. Subroutine
  2. instruction
  3. Source programs
  4. Machine code
Answer:A
12. Which one is the definition of a subroutine?
  1. A group of instructions that performs a limited processing task.
  2. A file that contains a group of instructions that performs a limited processing task.
  3. A group of instructions that performs a total processing task.
  4. None.
Answer:A
13.A collection of techniques for planning and writing of program that incresees programmer productivity is_____________
  1. Modular programming
  2. Procedural programming
  3. Structural programming
  4. Functional programming
Answer:A
14. Which of the following are related to structured programming
  1. Top-down programming
  2. Use of control structures-loop,selection,sequence.
  3. Functionl programming
  4. OOP
Answer:A,B
15. In modular programming, a pieces of program that performs a single limited function is known as which of the following?
  1. A class
  2. A module
  3. A loop
  4. A sequence
Answer:B
16. The likelihood of error in a small and limited purpose serving module is reduced .
  1. Because each module is written by an individual team.
  2. Because it is commented well while coding
  3. Because the propose and size of the each module is limited.
  4. All of the above.
Anwer:D
17.In modular programming, each program contains a main module ,which controls everything that happens build it transfers control to sub-modules so that they can he perform their function .then which of the following is true?
  1. Each submodule exits program when it has performed its function
  2. Each submodule returns control to the main module when it has performed its function
  3. Each submodule calls an exit module when it has performed its function.
  4. None
Anwer:B
18.A priented line that contains information about a single entity is which of the following?
  1. Group indication
  2. Heading line
  3. Detail line
  4. Printed line
Anwer:C
19.The subroutine that is part of the program that uses is________
  1. An internal subroutine
  2. An external subroutine
  3. None
Anwer:A
20.After a subroutine has finished its work what will happen?
  1. The program end
  2. Control is returned transferred to the caller of the subroutine
  3. Control is transferred to the exit routine
  4. None
Anwer:B
21.which one is register
  1. A special purpose hardware
  2. A special purpose software
  3. A special purpose memory device
  4. None
Anwer:B
22.The instructions that transfers control to the subroutine and back a join are commonly known as___________
  1. Call instruction
  2. Return instruction
  3. Call and return instructions
  4. Any of the three.
Anwer:C
23. The transfer of control to the subroutine and return control back is possible because
  1. The location of the instruction to which control is to return is stored in program
  2. The location of the instruction to which control is to return is stored in memory
  3. The location of the instruction to which control is to return is stored in register
  4. None
Anwer:A
24.a set of instructions for performing a particular task that can be used by any program as the instructions reside in a library that is external to the using program is__________
  1. Internal Subroution
  2. External Subroution
  3. Module
  4. None.
Anwer:B
25.In this technique we define the main program module,which initiated the program call other modules and then terminals.what technique is this?
  1. Modular programming
  2. Top down programming
  3. Bottom-up programming
  4. None
Anwer:B
26. Structure chart is planning tools used in ______
  1. Modular programming
  2. Top down programming
  3. Bottom-up programming
  4. None
Anwer:B
27. Which of the following is/are true for structure chart?
  1. It does not show the exact processing steps
  2. It does not show what modules will be called under what condition
  3. It does not show function to perform
It does not show relationship between modules.
Anwer:C,D
28. Reading of first record in a file prior to entering a loop that is executed until EOF is reached is known as _________
  1. Priming read
  2. Active read
  3. Data read
  4. Read record
Anwer:A
29. Pseducode is
  1. Language dependent
  2. Language independent
  3. Flowcharting tool
  4. .net compilation language.
Anwer:B
Chapter-3
1. Which of the following exchanges the contents in memory location X and Y?
a. Move x to y
Move y to x
b. Move x to temp
Move y to x
Move temp to y
Anwer:B
2. What values a Boolean filed (variable) can have
  1. Any vale
  2. Only textual data
  3. Either true or false
  4. Only numeric value
Anwer:C
3 which of the following operation or operations can be used in Boolean algebra
  1. NEITHER
  2. AND
  3. OR
  4. NOT
Anwer:B,C,D
4. Whitch of the following is or are Boolean operations
  1. NEITHER
  2. AND
  3. OR
  4. NOT
Anwer:B,C,D
5. Say a=5 b=9
Now consider the Boolean expression NOT(a<b)
This expression evaluates to
  1. True
  2. False
Anwer:B
6 consider the Boolean expression a and b or not c
Which operation evaluated first
  1. And
  2. Or
  3. Not
  4. From left to right as written
Anwer:C
7. Two Boolean expression are equivalent
  1. When they have the same values for all combinations of condition
  2. When they have the same values for any one combination of conditions
Anwer:A
8. Which of the following is compound condition?
  1. More one conditions used in the same subroutine
  2. More then one conditions that are logically related
  3. More then one condition that are combined using Boolean operators
  4. None of the above
Anwer:C
9. Which of the following is or are true about a condition
a. It is used to control sub modules from the main  in a program
b. It is used t                                                o control a loop
c. It is used to select form among two alternatives for processing
d. It is used to display output of a program
Anwer:B,C
10. Which of he following best describes an error routine?
a. Instructions that prevent errors to occur
b. Instructions that cause errors
c. Instruction that are executed when an error is encountered during processing
d. A subroutine that has erroneous instructions
Anwer:C
11. When an error of the problem and is encountered what possible can you do, depending on the nature of the problem and the type of processing being done?
  1. Display an error message and try to correct the problem
  2. Display an error message and terminate processing immediate.
  3. Display an error message and wait for the operator to take some collective action
  4. Make a record of the error so that it can be corrected later and then continue processing erroneous record.
Anwer:B,C,D
12. Which of the following is or are used as input editing techniques?
  1. Desk checking
  2. Sequence checking
  3. Restricted value test
  4. Counter technique
Answer:B,C
13. In batch a process where data is stored on a key field(or field ) which type of input editing technique is useful?
  1. Desk checking
  2. Sequence checking
  3. Restricted value test
  4. Counter technique
Answer:B
14. When counter technique can be used ?
In batch processing where data is storeed on a key field
When number of data record to be read be known in advance
When number of data is over 10000
When data is very few.
Answer:B

































Chapter-4
Q1.which is used to plan and document processing that involves complex combination of conditions?
  1. Flow Chart.
b. Structure Chart
c. HIPO Chart
d. Decision Table.
Q2.Which of the flowing is true for a decision table?
  1. It is a tool for identifying and documenting modules in a program?.
  2. It is a tool for showing what happens in a program module.
  3. It is a tool planning and documenting processing that involves complex combination of conditions.
  4. It is a tool for developing algorithm.
Q3. Is the order of rules in a decision table important?
  1. Yes.
  2. No.
Q4. What do we call a situation in which more then one role of a decision  table may be applied for a given combination of condition?
  1. Contradiction.
  2. Confusion.
  3. Conflict.
  4. Redundancy.
Q5.A situation in a Decision table in which the same combinations of conditions lead to different actions is referred to us_________
  1. a.      Contradiction.
  2. Confusion.
  3. Conflict.
  4. Redundancy.
Q6. It is possible move part of the condition from the condition stub to the condition entries and the part of the action from theaction stub to the action entries?
  1. Mixed-entry decision table.
b. Compound decision table.
c. Extended entry decision table.
d. Complex entry decision table.




Chapter-5
Q1.What do we call the field in input record that used to sequence the line?
  1. Control Break.
  2. Control Field.
  3. Control area.
  4. Control loop.
Q2.Which Field is checked to determine when a subtotal is to be printed?
a. Total field.
b. Control Field
c. ID field.
d. None.
Q3.where do we use control break situation using control field?
  1. In business analysis.
  2. In printing business report.
  3. In structure chart.
  4. In structure report.
Q4.Line printed at the top of the pages of a report is_________
  1. Heading line.
  2. Final line.
  3. Detail line.
  4. None.
Q5.Which of the following is heading line?
  1. A line that contains sales amount for each item.
  2. A line that prints subtotal for each item.
  3. A line that final total in the report.
  4. A line printed that identified the contents of each column.
Q6.A common requirement of generating business report is inclusion of
  1. Company heading
  2. Details line
  3. Various subtotals as well as final total
  4. None
Q7.In printing report all the input records for an item are grouped together to facilitate printing the items total .How this grouping accomplished ?
  1. Sorting the input file by control field
  2. Changing the order of the input fields.
  3. Checking sequence error in record.
  4. None
Q8.You are using employee files to print pay report and the file sorted in ascending order by employee number in a loop when you say is a control break?
  1. When new employee number is equal to the previous employee number.
  2. When new employee number is greater than previous employee number.
  3. When new employee number is less than previous employee number.
  4. When new employee number is 0.
Q9. What do we call a control break that is encountered when processing the first record in an ordered file?
  1. Control break
  2. False control break
  3. Page break
  4. Line break
Q10.In which of the following tool there is in option for branching
  1. Structure chart
  2. HIPO chart
  3. Flow chart
  4. d.      NS flow chart
Q11.Which one does not use branching
  1. Conventional flowchart
  2. N-S Flowchart
Q12.Which is the following is true for a loop structure?
  1. One instruction must check the end of the loop
  2. At least one instruction must after the condition being tested if the loop is to be terminated.
  3. At least one instruction must break the loop
  4. None
Q13. CASE structure can be categorized as a___________
  1. a.      Selection structure
  2. Loop structure
  3. Sequence structure
  4. None
Q14.what do you mean by the term “single spacing”
  1. Printing with no blank line between report line.
  2. Sepration report line
  3. Printing a blank line between report line.
  4. None
Q15.what do you mean by the term “double spacing”
  1. a.      Printing one blank line between report line.
  2. Printing two blank line between report line.
  3. Printing noblank line between report line.
  4. None
Q16.what do you mean by the term “triple spacing”
  1. Printing one blank line between report line.
  2. b.      Printing two blank line between report line.
  3. Printing noblank line between report line.
  4. None

Chapter-6
Q1.processing that produces more Than one level of subtotal is_______
  1. Multi-level control break.
  2. Multi-level condition break.
  3. Multi –level loop break.
  4. None.
Q2.In which type of repot one line summarize more then one input report?
  1. Detail printed.
  2. Group printed.
Q3.What do we call a report that does not contain detail line?
  1. Detail printed report
  2. Group printed report.
  3. Grouped report.
  4. Sorted report.
Q4. The most significant field in the ordering of a field that change least frequently is______
a. Minor Control field.
b. Major Control field.
c. Master field.
d. Control break.
Q5. The other than the major or minor control field present only when there are three or more control field is_________
a. Minor Control field.
b. Major Control field.
c. Master field.
d. Intermediate –level control field.
Q6.In processing business file you find that there are number of levels of subtotals, each different level of subtotal is control by control field. This situation is defines as_____
Multi-level control break.
Multi-level condition break.
Multi –level loop break.
None.
Q7. The least significant field in the ordering of a file and the field that change most frequently is__________
a. Minor Control field.
b. Major Control field.
c. Master field.
d. Control break.
Q8. Which of the following is group –indication technique in printing report?
Printing one line for each input record
Printing value of a control field for each input record
Printing value of a control field only when the value changed.
None of the above



































Chapter-7

1.Two table with the same number of elements and some logical relationship is a
  • Single table
  • Paired table
  • Argument table
  • Function table
2.Data items those are of the same type are considered to be what?
  • Homogeneous data
  • Paired data
  • Single data
  • None
3.What is homogenous data?
  • Data items those are of same length
  • Data items those are of same type
  • Numeric data items
  • Character  date items
4.  Why table can be required (choose 2)
  • To hold information that is required in processing
  • To store results of processing
  • To hold summery information
  • To store control information
5. Accessing a function table directly without first searching an argument table is known as
  • Direct table accessing
  • Direct table addressing
  • Direct table analyzing
  • Direct table acting.
6. Is perform a table search, we look for a particular value in the argument table that equaled the search argument in________why?
  • Discrete table
  • Segmented table
  • Function table
  • None
7. A table that in searched is_______what?
  • The argument table
  • The function table
  • The multidimensional table
  • The binary table
8. The table that contains values that are to be retrieved for use in processing is ______what?
  • The argument table
  • The function table
  • The multidimensional table
  • The binary table
9.An argument table in which  each entry represents a particular value that is compared to fine an exact match is_______what?
  • A segmented table
  • A discrete table
10.An argument table in which  argument entry is the upper or lower limit  of a range of values is_______what?
  • A segmented table
  • A discrete table
11. The value that is compared with argument table entries is___________what?
  • Function argument
  • Search argument
  • Search parameter
  • Search entry
12. How search argument is compared in case of a segmented table in ascending order to find an entry?
  • The search ends when we find a table is equal to the search argument
  • The search ends when we find a table is greater or equal to the search argument
  • The search ends when we find a table is less than to the search argument
  • none
13. For which type of table the binary search is a more efficient technique?
  • Large table
  • Small table
  • A table with 500 entry
  • None
14. When the binary search is used, in what order the argument table should be?
  • Ascending order
  • Descending order
  • Enter ascending or descending order
  • None
15. Which of the following is an advantage of direct table addressing?
  • Argument entries can be accessed without having to search the function table
  • Function entries can be accessed without having to search the function table
  • Entries can be searched faster
  • None






Chapter-8
1. What is a master file?
  • A relatively permanent file that contains information use.
  •  A relatively temporary file that contains information used to update or maintain master information.
  • A relatively permanent file that contains valuable information.
  • A relatively permanent file that contains on transactional information.
2. A transitional file is
  • A relatively permanent file that contains information use.
  •  A relatively temporary file that contains information used to update or maintain master information.
  • A relatively permanent file that contains valuable information.
  • A relatively permanent file that contains on transactional information.
3. In sequences access, which of the following is true?
  • First record is process first then second record and so on.
  • Recorded are processes in sequence of key field.
  • Recorded are processed in random
  • None.
4. A file to which records are added by placing them after the records already in the file –What it is call?
  • A batch file
  • A exe file
  • A assembly file
  • A piggyback file.
















Chapter-9
1. What does direct access means?
  • Ability to store any amount of data.
  • Ability to extract information fast.
  • Ability to go directly to any record without having to read the first read all the processing record.
  • None
2.DADS stand for?
  • Digital access storage device
  • Digital address storage device
  • Direct access storage device
  • Dynamic access storage device
3. The most common example of DADS?
  • Magnetic Disk
  • Magnetic tape
  • Optical Disk
  • Optical Fiber.
4. In disks data is stored on_________
  • Optical
  • Digital
  • Magnetically
  • Electrical
5.In disk data is recorded in_________
  • Tracks
  • Cylinder
  • Sector
  • None
6. The collection tracks of the same number, all of which can be accessed with a single positioning of the accessing mechanism of track known as ________
  • Tracks
  • Cylinder
  • Sector
  • Head
7. What do we use in conjunction with a table name to specify a particular element of a table?
  • Catalog
  • Counter
  • Map
  • Index
8. A file from which records may be retrieved directly by means of one or more indexes and can be accessed sequentially is______
  • Master file
  • Index file
  • Data file
  • Transaction file
9.What do we use in conjunction with a table name to specify a particular element of a table?
  • Catalogue
  • Counter
  • Map
  • Index
10.A file from which records may be retrieved directly by means of one or more indexes and can be accessed sequentially is _________________
  • Master file
  • Transaction file
  • Data file
  • Indexed file
11. Indexes provide the location of the record in the file so that__________
  • The system can store the location
  • The file can be sorted easily
  • The system can go directly to the location to retrieved that specific data
  • none
12. Which of the following are methods of indexing?
  • ISAM
  • Catalogues
  • VSAM
  • Full index
13. ISAM stands for
  • Indexed sequential  access method
  • Index serial access method
  • Indexed sequence access method
  • Indexed storage access method
14. VSAM stands for
  • Virtual sequence access method
  • Virtual sequential access method
  • Virtual storage access method
  • Visual storage access method
15. ISAM file is divided into which three areas?
  • Prime Data area
  • The index
  • The bottom area
  • The overflow area
16. IOCS stand for
  • Input Output Control System
  • Input Output Cache System
  • Input Output Control Storage
  • Input Output Cache Storage.
17. The prime data area of an ISAM file is used for what?
  • For the overflow record
  • For the records themselves at the time the file is created.
  • For track index
  • None
18.which of the following is the lowest level index in an ISAM file?
  • Master index
  • Track index
  • Cylinder index
  • none
19.which of the following is the highest level index in an ISAM file?
  • Master index
  • Track index
  • Cylinder index
  • none
20. Where a specific record is to be retrieved from an ISAM file_________
  • The lowest level index is searched first
  • The highest level index is searched first
  • The Mid level index is searched first
  • none

Comments

Popular posts from this blog

IDB HTML MCQ

Questions: 1. A webpage displays a picture. What tag was used to display that picture? a. picture b. image c. img d. src 2. <b> tag makes the enclosed text bold. What is other tag to make text bold? a. <strong> b. <dar> c. <black> d. <emp> 3. Tags and test that are not directly displayed on the page are written in _____ section. a. <html> b. <head> c. <title> d. <body> 4. Which tag inserts a line horizontally on your web page? a. <hr> b. <line> c. <line direction=”horizontal”> d. <tr> 5. What should be the first tag in any HTML document? a. <head> b. <title> c. <html> d. <document> 6. Which tag allows you to add a row in a table? a. <td> and </td> b. <cr> and </cr> c. <th> and </th> d. <tr> and </tr> 7. How can you make a bulleted list? a. <list> b. <nl> c. <ul> d. <ol> 8. Ho

Database Connection with PHP PDO MYSQL

PDO Connection MYSQLI // Create Connection with Pdo\ $dsn = "mysql:host=localhost; dbname=test;"; $db_user = "root"; $db_password = ""; try{     $conn = new PDO("$dsn", "$db_user","$db_password");    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     // $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     echo "Connected"; }catch(PDOException $a){     echo "Connection Failed". $a->getMessage(); }