Computer Science Full Book Important MCQs - ICS
Part 2. This
is an important post as it has the full book most conceptual and imperative
multiple-choice questions (MCQs) with answers of ICS Part-II, Computer
Science. This online test is for those students who want to appear in
Admission | Entry Tests of the top-rated universities all over Pakistan and as
well as examinations.
This
MCQs-based online test covers main two modules i.e., Database (Microsoft
Access) and C Programming Language. After completion, this MCQs-based online
test, that covers the different topics, for example, computer science MCQs
with answers, computer science solved MCQs pdf, computer science MCQs, computer
science MCQs pdf, lecturer computer science MCQs with answers
pdf, computer science MCQs with answers for entry test pdf, ECAT computer
science MCQs pdf, database, database
integrity, normalization, Microsoft access, c
compiler, relational database, rdbms, dbms, database
management system, relational database, c programming language, loops, if
else, arrays, functions, and file handling.
👇
➤ Computer Part-I - Chapter Wise MCQs
➤ Computer Part-II - Chapter Wise MCQs
Part-II Computer - Full Book MCQs
For
ECAT | Admission Tests
- What will be the output of the following code?
printf("%.2f",5.5555);- 5.555
- 5.55
- 5.56
- 5.00
- An ampersand (&) before the name of a variable denotes?
- Actual value
- Variable name
- Address
- Data type
- To perform File I/O operations, we must use ____ header file?
- ifstream
- ofstream
- fstream
- Any of these
- The printf is a _____ function?
- Built-in
- User defined
- Local
- All of these
- Which of the following is used to associate entities with one another?
- Entity
- Attribute
- Identifier
- Relationship
- Which mode is used to open a file in read/write mode?
- w
- w+
- r+
- a+
- Which format specifier is used for integer data type?
- %d
- %c
- %s
- %f
- C language programs are divided into unit called?
- Section
- Syntax
- Function
- Sub form
- The ampersand used in scanf() function is called?
- Address indicator
- Cell address
- Control
- Program
- A relation is also known as?
- Table
- Tuple
- Data item
- Attribute
- In 3NF, which form of dependency is removed?
- Functional
- Non-Functional
- Associative
- Transitive
- SQL stands for?
- Structured Query Language
- Sort Query Language
- Self Query Language
- Seek Query Language
- The output of a query in the form of a?
- Table
- Form
- Report
- Macro
- Customers, cars and parts are examples of?
- Entity
- Attribute
- Cardinality
- Relationship
- Which of the following are object in MS Access database?
- Table, Forms, Queries and Reports
- Database, Datasheet and Form views
- Folders and Tools
- All of above
- The person who is responsible for the design, implementation, operating, management and maintenance of database?
- Database Administrator
- Data Administrator
- The user
- System analyst
- The relationship between countries and their capitals is an example of ____ relationship?
- One-to-one
- One-to-many
- Many-to-many
- None of these
- Comments are used to increase the ____ of the program?
- Visibility
- Beauty
- Readability
- Complexity
- Which of the following statement assigns a value to many variables?
- Compound assignment statement
- L value
- R value
- Input statement
- A file is stored in?
- RAM
- Hard Disk
- ROM
- Cache
- Different attributes in two different tables having same name are referred to as?
- Synonym
- Homonym
- Acronym
- Mutually exclusive
- Which is shortcut key to execute a program?
- F9
- Alt + F9
- F5
- Ctrl + F9
- Relational operators allow to ______ numbers?
- Add
- Compare
- Divide
- Multiply
- To create an output stream, we must declare the stream to be of class ___?
- ofstream
- ifstream
- iostream
- None of these
- A loop within another loop is called?
- Finite
- Infinite loop
- Nested loop
- Outer loop
- A function does not return any thing has return type?
- Nothing
- Float
- Void
- Null
- How many basic layouts of forms in Microsoft Access?
- 2
- 4
- 3
- 5
- In a table, each column represents a?
- Record
- Field
- Attribute
- Field + Attribute
- The conditional operator is an alternative of?
- if
- if else
- nested if
- None of these
- Two or many attributes having different names but same meanings are?
- Homonyms
- Aliases
- Synonyms
- None of these
- The escape sequence for back slash is?
- \
- \b
- \\
- \t
- The rows of a table correspond to?
- Data set
- Data item
- Occurrence
- Attribute
- A relation is analogous to a?
- File
- Field
- Record
- Row
- The last statement is used to move case block in switch() structure can be?
- default
- if-else
- break
- else
- A database is an organized collection of ____ related data?
- Logically
- Physically
- Loosely
- Badly
- To find a four character name that starts with H, ____ criteria is specified as?
- H*4
- H?4
- H????
- H####
- Function prototype for built-in functions is specified in?
- Source file
- Header file
- Object file
- Image file
- Two dimensional object that is used for data storage is called?
- Group
- Set
- Declaration
- Relation
- Which of the following object is used to retrieve data from database and present in a formatted way?
- Report
- Form
- Table
- Query
- An attribute is also known as?
- Tuple
- Data set
- Row
- Data item
- Which of the following is not used to seek a file pointer?
- ios::cur
- ios::set
- ios::end
- ios::beg
- How many are the layout of report?
- 2
- 3
- 4
- 5
- The actual data of database is stored in?
- Tables
- Queries
- Forms
- Reports
- The body of loop comes before the test condition in?
- do-while
- while
- switch
- conditional operator
- Which of the following is most popular and powerful DBMS?
- MS-Word
- MS-Access
- MS-Excel
- MS-PowerPoint
- Another term used for a conditional operator is?
- Unary
- Binary
- Ternary
- Interaction
- Which of the following is an example of database?
- Phonebook
- Library catalog
- Student records
- All of these
- An expression that uses a relational operator is known as?
- Operational
- Sequential
- Serial
- Relational
- Function prototype for built in function are specified in?
- Source files
- Header files
- Object files
- Image files
- The output of the compiler is called?
- Source code
- Object code
- Linked code
- Program
- Variable that holds a large group of similar type of data is called?
- Array
- Scalar value
- Constant
- Multiple
- Microsoft Access save the database with the extension?
- .mdb
- .msdb
- .madb
- None of these
- The ASCII code for escape key is?
- 27
- 28
- 29
- 30
- A string constant is written in?
- Single quotation marks
- Double quotation mark
- Parenthesis
- Curly braces
- A relation must have a key?
- Sort key
- Foreign key
- Composite key
- Primary key
- A built in function?
- Cannot be redefined
- Can be redefined
- Cannot return a value
- Should be redefined
- Which of the following is not a database object?
- Table
- Query
- Report
- MS Word
- Which is not included in the definition of entity?
- Person
- Object
- Concept
- Action
- Each set of related items in a table is called?
- Table
- Record
- Field
- Query
- The loop which never end is called?
- Running loop
- Infinite loop
- Nested loop
- Continuous loop
- Which is needed to add, edit or delete records from a table?
- Record view
- Datasheet view
- Design view
- Edit view
- Which of the following function is used to input data in C-programs?
- scanf
- printf
- get
- sqrt
- A relation that contains minimal redundancy and allows easy use is called?
- Clean
- Simple
- Complex
- Well structured
- Which loop structure executes the body of the loop at least once?
- while()
- do-while()
- for()
- switch()
- A database containing all students in the class would store basic data of students in____?
- Record
- Field
- Cell
- File
- _____ is not a valid escape code?
- \t
- \r
- \y
- \f
- The format specified used for character type data type?
- %c
- %d
- %e
- %f
- The process of sending argument to a function is called?
- Sending
- Filtering
- Delivering
- Passing
- The symbol that performs operation on data is called?
- Syntax
- Operators
- Function
- Debug
- A variable declared inside the function is called?
- Local
- Global
- Actual
- Formal
- A database may contain?
- Only one table
- At most two tables
- At most three tables
- None of these
- How many primary key can a table have?
- One
- Two
- Between 1 and 5
- No limit
- Which of the following is not arithmetic operators except?
- +
- -
- %
- >
- Which of the following is equivalent to (p>=q)?
- p<q
- !(p<q)
- p>q
- !p<q
- Which operator in C is called Ternary Operator?
- If
- ++
- ?
- $
- A logical grouping of characters is a?
- File
- Record
- Field
- All of above
- How many types of relationship?
- 2
- 3
- 4
- 5
- All of the following are logical operators except?
- ||
- &&
- <
- !
- A sub form can be created by using?
- Drag and drop method
- The form wizard
- Sub form wizard
- All of these
- Data that causes inconsistency lacks is?
- Good data
- Data integrity
- Data redundancy
- Data anomaly
- Which escape sequence can used to begin a new line in C?
- /a
- /b
- \n
- /n
- The format specifier %U is used for?
- integer
- unsigned short
- unsigned float
- unsigned long int
- Which statement is used to move the control to the start of loop body?
- Continue
- Break
- Switch
- None of these
- Computer programs are also known as?
- Software
- Procedure
- Hardware
- Algorithm
- Relational operator allows us to ______ numbers?
- Compare
- Add
- Multiple
- Divide
- A collection of raw facts and figures is called?
- Files
- Data
- Processing
- Information
- A function is called by its?
- Return type
- Name
- Body
- Return type & name
- A relationship between students and teacher is an example of relationship?
- One-to-one
- One-to-many
- Many-to-many
- Many-to-one
- An index may be created on?
- Secondary key
- Foreign key
- Primary key
- All of these
- The expression 10 % 3 has a value equal to?
- 1
- 8
- 3
- 5
- A collection of data consists of name, address and email of a person is called?
- Byte
- Record
- Character
- Field
- The smallest meaningful unit of data in a database is called?
- Byte
- Record
- Character
- Field
- DBMS stands for?
- Database Management System
- Database Model System
- Distant base Model System
- Digital bus Model System
- Conditional operator takes?
- Three operands
- Two operands
- One operand
- Many operands
- Which of the following may be a temporary file?
- Data warehouse
- Transaction file
- Data structure
- Data type
- Referential integrity is applied on?
- Primary key
- Foreign key
- Secondary key
- Candidate key
- Which function is used to read character from a file?
- getc()
- putc()
- fputs()
- fgets()
- The functions used for input and output are stored in header file?
- conio.h
- math.h
- stdio.h
- output.h
- Which of the following are valid case in switch?
- Case 1:
- Case x<4
- Case 'ab'
- Case 1.5:
- The programmer usually enters into computer using?
- Compiler
- Debugger
- Text editor
- Linker
- In Access, the structure of a table is created in _____ view?
- Design view
- Database view
- Design & datasheet views
- None of these
- A database consists of various components called?
- Tools
- Properties
- Entities
- Objects
- Insert command is used to insert?
- A new table
- A new record
- A view
- Dependencies
- Which of the following refers to the correctness and consistency of data?
- Data independence
- Data integration
- Data integrity
- Data model
- Which of the following program requires no translator to execute the program?
- C
- C++
- Machine language
- Assembly language
- Ingredient of data modeling which defines the nature of the relationship among entities?
- Modality
- Cardinality
- Object
- Modality & cardinality
- A record is a complete set of _____ field?
- Distinct
- Related
- Designed
- All of above
- Which of the given is not a relationship?
- 1:1
- 1:M
- M:1
- None of these
- Conditional operator is an alternate of?
- if
- if-else
- nested if-else
- switch
- The scope of variable refers to its?
- Length
- Name
- Accessibility
- Data type
- In a relational database, a single piece of information is called?
- Table
- Record
- Entity
- Attribute
- The case block in switch() structure ends with?
- End select
- End case
- Break
- Case else
- A programming language used for mathematical and engineering applications was?
- FORTRAN
- BASIC
- Assembly
- COBOL
- Which is a numeric data type?
- Floating point
- Integer
- Integer + floating point
- None of these
- In for loop, which of the following is used among expressions?
- , (comma)
- ; (semicolon)
- : (colon)
- blank space
- Which is used for two way decision?
- switch
- if-else
- if
- Nested if else
- In relational database, a table is called?
- Tuple
- Relation
- File
- Schema
- Database development process involves mapping of conceptual data model into?
- Object oriented data
- Network data model
- Implementation
- Hierarchical model
- Which of the following is the correct association?
- File=Column
- Record=Row
- Field=Row
- Record=Table
- An if inside another if is?
- A branch
- Nested if
- A relational
- A conditional operator
- Another name of Row is?
- Field
- Column
- Tuple
- Attribute
- A primary key that consists of more than one attribute is called?
- Foreign key
- Composite key
- Multi-value key
- Compound key
- The output of a query is in the form of a?
- Table
- Form
- Report
- Macro
- A relationship between patient and bed is?
- One:One
- One:Many
- Many:Many
- Many:One
- A type of function written by the programmer is known as?
- User defined
- Subprogram
- Subroutine
- Built-in function
- The printed or screen display of data or information in the database is called?
- Entity
- Report
- Query
- Screen
- Which of the following function is used to write character to a file?
- putc()
- fputc()
- fget()
- get()
- The translated program into machine code is called?
- Source program
- Object program
- System program
- Application program
- This means to increase to value by one?
- Modulus
- Increment
- Decrement
- All of above
- A report that provides a column for each field of the records in under the column header is known as?
- Tabular Report
- Columnar Report
- Database Report
- Justified Report
- Variables are created in?
- RAM
- ROM
- Hard Disk
- Cache
- In which loop the condition comes after the body of loop?
- while loop
- do-while loop
- for loop
- while & do-while loops
- ____ is an object that extracts specific information from database?
- Table
- Form
- Report
- Macro
- The statement causes a loop to terminate early?
- Break
- Delete
- Exit
- Terminate
- Which data type is the default type?
- Memo
- Number
- Text
- Auto number
- Writing a program in C language is _____ than?
- Less time consuming
- More time consuming
- Less simple
- Less time consuming & less simple
- Which of the following is component of MS-Access application windows?
- Title bar
- Tool bar
- Scroll bar
- All of these
- Which one is logical data type in MS-Access?
- Auto number
- True/False
- OLE Object
- Yes/No
- The resulting collection of records, called a _____?
- Dynaset
- Table
- Form
- Report
- Organizing the database in computer disk storage is done in?
- Logical design
- Physical design
- Analysis
- Implementation
- On successful closing a file, the close() returns?
- Null
- 0 (Zero)
- 1 (one)
- File pointer
- Which of the following things are determined by format specifier?
- Data type
- Field Width
- Format of the value
- All of these
- Which loop structure always executes at least once?
- do-while
- for
- while
- None of these
- ___ file handling functions?
- fprintf()
- fscan()
- printf() + fscan()
- None of these
- The column of a table corresponds to?
- Table
- Record
- Field
- Cell
- The number of bytes used by double data type in C is?
- 2
- 8
- 12
- 16
- Local variables are also called?
- Automatic
- Normal
- Global
- None of these
- A form within another form is as known as?
- Main form
- Special form
- Dialog box
- Sub form
- All information's about one person or item is held in?
- Field
- File
- Record
- Database
- Which of the following represent the wizard of DBMS?
- Database Wizard
- Table Wizard
- Form Wizard
- All of these
- The row of a table corresponds to?
- Table
- Record
- Field
- Cell
- The nested-if is an alternative of?
- All of these
- if-else
- do-while
- switch()
- A loop within a loop is called?
- Complex loop
- Simple loop
- Nested loop
- Infinite loop
- To find a seven character name that start with j, the criteria is specified as?
- j * 4
- j ? 7
- j * 7
- j???????
- Which of the following loop is called counter loop?
- for
- while
- do-while
- if
- A set of rule that must be followed to develop a program is called?
- Syntax
- Preprocessor
- Bug
- Debug
- Which of the following is passed into the method by a caller?
- Actual parameter
- Formal parameter
- Arguments
- None of these
- A record in a database is the information referring to a?
- Person
- Product
- Event
- All of these
- Which function is used to input data in C-language?
- scanf()
- printf()
- sqrt()
- pow()
- In ____ strategy full copy of database is assigned to more than one site in the network?
- Partitioned
- Replicated
- Hybrid
- Centralized
- How many table views are available in Microsoft Access?
- 4
- 3
- 2
- 1
- Which of the following is not suitable for input mask?
- Tools
- Property
- Entities
- Objects
- The logical representation of an organization data is called a(n)?
- DBMS
- E-R model
- DBA
- None of these
- The process of arranging data in a logical sequence is called?
- Summarizing
- Sorting
- Classifying
- Data capturing
- The modulus operator is used for?
- Exponentiation
- Multiplication
- Integer remainder
- Division
- A category of data or information that describes an entity is called a?
- Attribute
- Field
- Record
- Entity
- Which is the native language of computer?
- C language
- Pascal
- DOS
- Machine language
- A row of relation is called a?
- Attribute
- Entity
- Tuple
- Attribute & Entity
- Memory is allocated to a local variable at the time of its?
- Declaration
- Destruction
- Definition
- First reference
- Which of the following format specifier is used for character string data type?
- %s
- %c
- %f
- %d
- Every C-statement ends with a?
- Period
- Comma
- Semicolon
- Colon
- Which of the following is not a data distribution strategy?
- Centralized
- Partitioned
- Hybrid
- Duplicated
- In flowchart the diamond symbol indicates?
- Progress
- Input
- Output
- Condition
- Which is loop statement?
- nested if
- if-else
- switch
- None of these
- Which statement is used to transfer the control to the specific point unconditionally?
- nested if
- if-else
- switch
- goto
- Format specifier for char data type is?
- %s
- %c
- %d
- %f
- Which of the following buttons of find and replace dialog box is click to start the search process?
- Find
- Find Next
- Search
- Next
- Which of the following short key to save the c program?
- F3
- F2
- Ctrl+S
- Ctrl+F9
- In text file, data is stored in?
- ASCII-Code
- Binary code
- Octal code
- Text code
- ______ is return type of is_open() function?
- int
- bool
- float
- char *
- MS-Access database consists of various components called?
- Controls
- Objects
- Tools
- Entities
- Which auto form displays one record at a time?
- Tabular
- Columnar
- Datasheet
- Justified
- The switch case block ends with?
- End select
- End case
- Case else
- Break
- Each separate piece of information stored in a record is called a?
- Form
- Field
- Table
- Cell
- An IDE typically consists of?
- Text editor
- Compiler
- Debugger
- All of these
- Which of the following is correct association?
- File=Column
- Column=Row
- Field Row
- Relation=Table
- Which of the following represents the preprocessor directive?
- void main (void)
- { }
- #include
- include
- In an E-R diagram, a rectangle presents a(n)?
- Identifier
- Entity
- Relationship
- Attribute
- The process of writing a program into programming language is called?
- Compiling
- Debugging
- Coding
- Flowchart
- Which of the following is valid variable name?
- 2S
- 2-S
- S2
- S*2
- In If statement false is represented by?
- 0
- 1
- 2
- 3
- Which field type can be indexed?
- Memo
- Hyperlink
- OLE
- Number
- In ERD ___ symbol indicates attribute?
- Rectangle
- Oval
- Diamond
- Solid line
- Which of the following data model is more flexible?
- Network model
- Hierarchical model
- Relational model
- Object model
- In 2NF, which form of dependency is removed?
- Functional
- Partial
- Associative
- Transitive
- Global variables are created in?
- RAM
- ROM
- Hard Disk
- Cache
- Create command is used to create?
- Table
- Report
- Query
- Form
- Which of the following operators work with one operand?
- Logical
- Unary
- Binary
- Ternary
- What is Z to A order called?
- Ascending
- Descending
- Condescending
- Alphabetical
- The function used to display output on the screen is called?
- printf
- scanf()
- getch()
- gets()
- A row table is divided into columns called?
- Records
- Fields
- Entities
- None of these
- A variable declared outside any function is called?
- Global variable
- Local variable
- Automatic variable
- Static variable
- A report may be based on a?
- Table
- Query
- Table & Query
- None of these
- Format specifier is started with symbol?
- ?
- %
- &
- @
- In "If" Statement false is represented by?
- 0
- 1
- 2
- 3
- Which of the following is not a valid identifier?
- return
- myint
- myInt
- total3
- Which is an example of multiple branches from single expression?
- If statement
- switch
- while loop
- for loop
- Which is loop statement?
- if
- if-else
- switch
- for
- Which of the following defines the nature of the relationship?
- Modality
- Cardinality
- Relationship
- None of these
- Which of the following shows the number of records of the relation?
- Modality
- Relationship
- Cardinality
- All of these
- Which of the following sign operate as modulus operator?
- `\div`
- %
- `\times`
- &&
- One execution of a loop is known as a(n)?
- Cycle
- Duration
- Iteration
- Test
- How many types of loop structure are available in C-language?
- One
- Two
- Three
- Four
- Which of the following is related to modality?
- Optional
- Many
- One
- One-to-many
- A char data type occupy?
- 2 byte
- 1 byte
- 3 byte
- 4 byte
- In ERD, which sign shows “Many”?
- Circle
- Diamond
- Single vertical line
- Crow’s foot
- A graphical query tool is known as?
- Query Grid
- Design Grid
- Query Form
- Design Form
- Which statement is used to exit from loop body?
- continue
- clrscr
- switch
- break
- The data in a table is entered in?
- Design view
- Normal view
- Datasheet view
- Layout view
- The fundamental concept of relational database is?
- Query
- Table
- Form
- Report
- In for statement, ____ expression is executed only once?
- Test
- Increment / decrement
- Initialization
- All of these
- The format specifier %lf is used for?
- Integer
- Unsigned short
- Unsigned float
- Double
- An entity related to itself in an ERD Model refers to?
- Recursive relationship
- One to many relationship
- Many to many relationship
- One to one relationship
- Which key does not hold uniqueness property?
- Candidate key
- Foreign key
- Primary key
- Secondary key
- What is the final value of “x” after executing the following code?
for(int x=0; x<10;x++)- 10
- 9
- 11
- None of these
- void occupies how many bytes in memory?
- Zero
- One
- Two
- Four
- The key for data retrieval purpose is?
- Sort key
- Secondary key
- Primary key
- Control key
- The goal of normalization is to?
- Get stable data
- Increase Number of relation
- Increase redundancy
- None of these
- The rule that a second from a table cannot be deleted if its associated record exiting a related table is called ___ rule?
- Referential integrity
- Entity integrity
- Normalization
- All of these
- The attribute on the left hand of the arrow in a functional dependency is?
- Candidate key
- Determinant
- Foreign key
- Primary key
- Why are validation rules used in a database?
- Ensure correct data is entered
- 1:M relationship
- M:M relationship
- All of these
- c- = b is equivalent to?
- b- = c
- c = -b
- c = c-b
- b = b-c
- What of the following has positive integers between 1 and 255?
- Byte
- Integer
- Single
- Decimal
- How many variables can be used in printf() function?
- One
- Two
- Three
- Many
- How many expressions are in for loop structure?
- 0
- 1
- 2
- 3
- Semicolon is placed at the end of condition in?
- for loop
- while loop
- do-while loop
- nested loop
- What will be output of following code?
!(7<7) ? printf(“ABC”)? printf("XYZ");- ABC
- XYZ
- ABCXYZ
- None of these
- Which of the following key is used to compile a c program?
- Ctrl+F9
- Alt+F9
- Shift+F9
- Ctrl+Shift+F9
- The symbol of conditional operator is?
- !
- :
- ?
- *
- While() loop is called?
- Conditional loop
- Counter loop
- Finite loop
- Infinite loop
- The data type of switch expression must be?
- int
- char
- int or char
- Anyone of these
- The data can be recovered in case of loss by using?
- Master file
- Backup file
- Transaction file
- Data file
- Which of the following may monitor the data being entered to make sure it conforms to the data definition rules?
- Data validation rule
- Input mask
- Data dictionary
- All of these
- Which one is a logical operator?
- ==
- !=
- <>
- !
- The function getch() is defined in?
- stdio.h
- conio.h
- string.h
- math.h
- Another term for computer making a decision is?
- Sequential
- Selection
- Repetition
- Iteration
- Output of following code?
main()
{
int score=70;
if(score>=90)
printf(“1”);
if(score>=80)
printf(“2”);
if(score>=70)
printf(“3”);
if(score>=60)
printf(“4”);
}- 2
- 1
- 123
- 34
- Output of given code below?
main()
{
int counter=10;
switch(counter){
case 1:
printf(“Math”);
break;
case 2:
printf(“English”);
break;
case 3:
printf(“Physics”);
break;
default:
printf(“Urdu”);
}- Math
- English
- Physics
- Urdu
- How many times the loop will execute?
int i=0;
while(i<=5)
{
printf(“%d”,i);
i++;
}- 3
- 4
- 5
- 6
- The final values of count and i after execution?
int i=5, count=0;
do{
count++;
i++;
} while(i<=5);- i=6, count=1
- i=5, count=0
- i=5, count=1
- i=6, count=0
Post a Comment
Your feedback is highly appreciated and will help us to improve. So, please give your good suggestions.