Spread the love

Chapter 1 All MCQS

0%
0
Created on By admin

FB_CS_2nd_Ch1

Federal Board Computer Science Part 2 Chapter 1 MCQS

1 / 40

1) a process can be

2 / 40

2) _____refers to the ability of an operating system to support multiple threads of execution within a single process

3 / 40

3) a______ is a sequence of instruction in a program that is independent of other thread

4 / 40

4) which of the following is also called as lightweight process

5 / 40

5) when process is having all the resources except processor then it is considered in which of the following state

6 / 40

6) a process is in________state when it is waiting for i/o to be completed

7 / 40

7) suppose the a process is in “blocked state” waiting for i/o service. when the service is completed it goes to the

8 / 40

8) which of the following is also known as waiting state

9 / 40

9) the various state of process are

10 / 40

10) which of the following is not a state of process

11 / 40

11) which of the following is considered as the unit of work in a system

12 / 40

12) a process is called

13 / 40

13) a program in execution is called

14 / 40

14) the compilation process of C++ program creates a

15 / 40

15) windows operating system uses______files as command prompt

16 / 40

16) the process of assigning computer resources to certain programs is called

17 / 40

17) the process of allocating main memory to programs and keeping the program in memory separate from one another is called

18 / 40

18) which command in DOS is used to display directory and file in the directory

19 / 40

19) which command in DOS is used to transfer a files from one pc to another

20 / 40

20) DEL command is used to ____

21 / 40

21) which of the following is not a DOS command

22 / 40

22) DOS is a______ operating system

23 / 40

23) in DOS a user communicates with the operating system by issuing

24 / 40

24) which operating system provides only a command line user interface

25 / 40

25) dos was developed in

26 / 40

26) DOS

27 / 40

27) all of the following are desktop operating system EXCEPT

28 / 40

28) the operating system manages

29 / 40

29) which of the following act as an interface between the user and the hardware

30 / 40

30) UNIX operating system is an _____

31 / 40

31) Mac os is an operating system for ____ compuer

32 / 40

32) DEL command is used to

33 / 40

33) which of the following is considered as computer resource

34 / 40

34) the operating system manages

35 / 40

35) which of the following acts as an interface between the user and the hardware

36 / 40

36) the most important software needed for a computer to function are

37 / 40

37) what is the name given to the organized collection of programs that controls the overall operation of a computer

38 / 40

38) The operating system is a example of

39 / 40

39) Which operating system is used in home appliances?

40 / 40

40) In which operating system, same types of jobs are grouped together and executed one by one? 

Your score is

The average score is 0%

0%

Chapter 2 All MCQS

2
Created on By admin

FB_CS_2nd_Ch2

Federal Board Computer Science Part 2 Chapter 2 MCQS

1 / 39

1. ________ symbols are used to connect one symbol of flowchart to another. 

2 / 39

2. Which of the following is not a type of feasibility study? 

3 / 39

3. The type of conversion in which individual components of the new system are used one by one is called:

4 / 39

4. Coding is also called________. 

5 / 39

5. The__________ is the person who writes program into programming language. 

6 / 39

6. The person who will use the information system directly or will use the information produced by the system is called___________. 

7 / 39

7. _________ manages the system development, assign staff, manage the budget and reporting and ensure that deadlines are mwt. 

8 / 39

8. _________ typically have many years of systems analysis or programming experience and provide leadership in software development efforts. 

9 / 39


9. The________ phase involves monitoring, evaluating, repairing and improving the system throughout the lifetime of the system. 

10 / 39

10. What is the final phase in system development life cycle? 

11 / 39

11. The type of conversion in which both new and old systems operate together for a period of time is called:

12 / 39

12. The type of conversion in which a subset of users migrates to new system while others continue to use old one until the new system starts working correctly is called:

13 / 39

13. The process of training personnel to use the new systems is done during. 

14 / 39

14. Translating the algorithm into a programming language occurs at the_________ phase of SDLC. 

15 / 39

15. ________ is the process of writing the instructions that a computer will follow to perform the task. 

16 / 39

16. In__________ phase, developers start to build the entire system by writing code using the selected programming language. 

17 / 39

17. The decision symbol in a flowchart indicates:

18 / 39

18. The rectangle symbol in a flowchart indicates:

19 / 39

19. Flowchart is a_________ representation of steps to solve a problem: 

20 / 39

20. Which of the following task are performed by most of the algorithms?

21 / 39

21. An algorithm is a:

22 / 39

22. A set of steps that describes what a program must do to complete a task is known as:

23 / 39

23. In design phase, which of the following is the primary area of concern.

24 / 39

24. A project is ________ if the technology required to complete is available.

25 / 39

25. What comes after design phase in SDLC?

26 / 39

26. A______ is conducted to find out whether the proposed system is possible, affordable and acceptable for the organization.

27 / 39

27. _______ is the process of studying the current system and proposing an alternative replacement system.

28 / 39

28. Which phase of SDLC is used to develop the project plan?

29 / 39

29. _______ is the systematic arrangement of tasks to accomplish an objective.

30 / 39

30. SDLC stands for:

31 / 39

31. The term_______ refers to the people who have an interest in the successful implementation of the system.

32 / 39

32. Which of the following is not a phase in system development life cycle?

33 / 39

33. A________ is set of components to collect, create, store, process and distribute information.

34 / 39

34. The_________ determines whether the project should go forward.

35 / 39

35. The entities having a positive or negative influence in the project completion are known as

36 / 39

36. ______spends most of their time in the beginning stages of the SDLC, talking with end users, gathering requirements, documenting systems and proposing solutions.

37 / 39

37. Enhancements, upgradation and bugs fixation are done during the              step in the SDLC.

38 / 39

38. The first step in the system development life cycle is:

39 / 39

39. The organized process or set of steps that needs to be followed to develop an information system is known as:

Your score is

The average score is 60%

0%

Chapter 4 All MCQS

0%
0 votes, 0 avg
0
Created on By admin

FB_CS_2nd_Ch4

Federal Board Computer Science Part 2 Chapter 4 MCQS

1 / 53

1. A while loop is more appropriate to use than a for loop when:

2 / 53

  • 2. In which situation a do-while loop is more appropriate to use?

3 / 53

3. In which situation a for loop is more appropriate to use?

4 / 53

4. Which of the following transfers control to the beginning of the loop, skipping the remaining statements?

5 / 53

5. Which of the following can be used to replace switch statement?

6 / 53

6. Which of the following can be used to replace ternary operator?

7 / 53

7. How is multiple-statement for loop terminated?

8 / 53

8. How is a single-statement for loop terminated?

9 / 53

9. In which sequence the while loop is executed:

10 / 53

10. If the value of a=15 and b=10 what would be the output of the expression a>b?a-b:a+b;

11 / 53

11. If the value of x=10 and y=5 then what would be the output of the expression? x>y? x*y:x+y;

12 / 53

12. When is for loop more appropriate than while loop?

13 / 53

13. The switch statement is very similar to the:

14 / 53

14. The keyword ‘break’ cannot be used within:

15 / 53

15. Which of the following is a loop statement?

16 / 53

16. Semicolon is placed at the end of condition in:

17 / 53

17. If you want a user to enter exactly 20 values, which loop would be the best to use?

18 / 53

18. This means to increase a value by one:

19 / 53

19. A for loop contains three expressions: initialization, condition and:

 

20 / 53

20. The number of expressions in for loop are:

21 / 53

21. This statement is used to skip some statements inside loop.

22 / 53

22. A loop within a loop is called:

23 / 53

23. This statement causes a loop to terminate early?

24 / 53

24. The statements within curly braces in a loop is known as loop:

25 / 53

25. In which loop the condition comes after the body of the loop?

26 / 53

26. In which loop the condition comes before the body of the loop:

27 / 53

27. Which loop structure always executes at least once?

28 / 53

28. It is the simplest loop in c++ language:

29 / 53

29. Which of the following loop is available in c++?

30 / 53

30. How many types of loop structures are available in c++?

31 / 53

31. One execution of loop is known as a(n):

32 / 53

32. These are used to repeat the execution of specific block of statements:

33 / 53

33. It is used when program requires more than one test expression

34 / 53

34. Which of the following are valid case statements in a switch?

35 / 53

35. The code under this statement is executed when the input does not match to any case in switch statement.

36 / 53

36. How many times is the test expression of a switch statement evaluated?

37 / 53

37. Switch statement is alternative of:

38 / 53

38. The case block ends with:

39 / 53

39. It is not part of switch statement:

40 / 53

40. The case is used with:

41 / 53

41. The conditional operator is alternative of:

42 / 53

42. Which operator in C++ is called a ternary operator?

43 / 53

43. The conditional operator takes________ operands

44 / 53

44. It is also known as conditional operator

45 / 53

45. The statements to be executed is the test expression is false are written in the body of:

46 / 53

46. In if statement, true is represented by:

47 / 53

47. In if statement, false is represented by:

48 / 53

48. In if statement, test expression is written within these symbols

49 / 53

49. Which of the following is used for making two way decision?

50 / 53

50. Which of the following is not a conditional statement? 

51 / 53

51. Another term for a computer making a decision is:

52 / 53

52. How many types of control statements are used in programming? 

53 / 53

53. Which of the following is used to control the flow of execution in a program? 

Your score is

The average score is 0%

0%

Chapter 5 All MCQS

0
Created on By admin

FB_CS_2nd_Ch5

Federal Board Computer Science Part 2 Chapter 5 MCQS

1 / 28

1. 30.The strcmp() function will return_____ it string 1 and string 2 are same.

2 / 28

2. 29.the _______ function is used to return the length of a string.

3 / 28

3. If a string need to store 25 characters, how should it be defined to be a valid string?

4 / 28

4. 27.Which is correct statement?

5 / 28

5. 26.if char city[]=”Karachi”; then what will be the size of string variable city?

6 / 28

6. 25.Which of the following is true about string?

7 / 28

7. Which of the following C++ declarations will create a 2 dimensional integer array with 10 rows and 5 columns?

8 / 28

8. 21.Assume int t[] = {1, 2, 3, 4}. What is t[4]?

9 / 28

9. 21. A two-dimensional array can be viewed as:

10 / 28

10. 20.Which of the following statements is valid?

11 / 28

11. 19.Which of the following is a valid C++ array definition?

12 / 28

12. 18. What is the output of the following C++ code?

int n[4] = (8, 7, 6, 3);

cout<

13 / 28

13. 17.How many elements does the following array have?

int n[1000];

14 / 28

14. 16. Which of the following declares an array of 10 elements and assigns the value 3.2 to the first element?

15 / 28

15. 15.Which of the following is used to access a specific element of an array?

16 / 28

16. 14.The index of an element in array is written within:

17 / 28

17. 13. The total number of elements  ln  an array is called:

18 / 28

18. 12. Each element of array has its own:

19 / 28

19. 10.An array:

20 / 28

20. 9._____is a group of consecutive memory locations with same name and data type

21 / 28

21. 8.Which of the following functions is used to append a string on to the end of another

string?

22 / 28

22. 7.Given the following:

int arr[3][4]=

{{12,0,5,10},

{7,8,19,30},

{33,1,2,22}};

Which of the following statements replaces 19 with 50?

23 / 28

23. 6. Given the following:

int k[3][5]=
{{3,10,12,27,12},

{21,20,18,25,1},

{15,16,17,44,4}};

What is in k[1][3]?

24 / 28

24. 5. Which of the following Identifies the last element of array declared as int a[10][10]?

25 / 28

25. 4.Which of the following Identifies first element in array named temp?

26 / 28

26. 3. What is an array?

27 / 28

27. What is the index number of last element of an array with 5 elements?

28 / 28

28. which of the following is correct declaration of array

 

Your score is

The average score is 0%

0%

Chapter 6 All MCQS

0
Created on By admin

FB_CS_2nd_Ch6

Federal Board Computer Science Part 2 Chapter 6 MCQS

1 / 42

1. 24.The statement int num[2][3]={{1.2}, {3,4}, {5, 6}};

2 / 42

2. Observe the following function declaration and choose the best answer :

int divide (int a, int b=2)

3 / 42

3. Variables inside parenthesis of function declarations have________ level access?

4 / 42

4. Arguments of a functions are separated with:

5 / 42

5. We declare a function with_________ if it does not have any return type.

6 / 42

6. The phenomenon of having two or more functions in a program with the same names but different number and types of parameters in known as:

7 / 42

7. What is the value of x after calling the following function?

int x;

fun(3,x);

void fun(int a, int & b)

{

b=a*5+1;

}

8 / 42

8. In function overloading, the functions differ with:

9 / 42

9. The process of declaring many functions with the same name is known as:

10 / 42

10. The parameters are passed by reference by the symbol:

11 / 42

11. The default parameter passing mechanism in c++ is:

12 / 42

12. The declaration void fun(int x, int & y); is called:

13 / 42

13. Which of the following is true about a function call?

14 / 42

14. Memory is allocated to a local variable at the time of its:

15 / 42

15. The local variables are also called:

16 / 42

16. Global variables are created in:

17 / 42

17. A variable declared outside any function is known as:

18 / 42

18. A variable declared inside a function is known as:

19 / 42

19. The scope of a variable refers to:

20 / 42

20. Which keyword is used by a function to return a value?

21 / 42

21. Which of the following is incorrect?

22 / 42

22. Which of the following is used by a function to receive passed values?

23 / 42

23. What happens when function is called?

24 / 42

24. Parameters used with function call statement are called:

25 / 42

25. Parameters used in the function header of a function definition are called:

26 / 42

26. A function that does not return a value has the return type:

27 / 42

27. The first line of function definition is known as:

28 / 42

28. The statement that activates a function is known as:

29 / 42

29. The function definition consists of:

30 / 42

30. Function definition can be written:

31 / 42

31. The process of sending an argument to a function is called:

32 / 42

32. Which of the following is NOT a valid function declaration?

33 / 42

33. In a c++ program, two functions can have:

34 / 42

34. Which of the following is true about function prototype?

35 / 42

35. Function declaration consists of:

36 / 42

36. A built-in function:

37 / 42

37. The pow() and sqrt() are examples of:

38 / 42

38. Function prototype for built-in functions are specified in:

39 / 42

39. The pre-defined functions that are part of c++ language are called:

40 / 42

40. Another name for built-in function is:

41 / 42

41. Which of the following is a type of function available in c++?

42 / 42

42. Which of the following is the advantage of a function?

Your score is

The average score is 0%

0%

Chapter 7 All MCQS

0
Created on By admin

FB_CS_2nd_Ch7

Federal Board Computer Science Part 2 Chapter 7 MCQS

1 / 27

1. In inheritance a class derived from more than one parent class is called

2 / 27

2. If class A inherit from class Then B is called____of  A . A is called_____of B

3 / 27

3. The base class is also called

4 / 27

4. The derived class is also called

5 / 27

5. Which of the following class inherit all the capabilities of the base class

6 / 27

6. ____is the mechanism that allows a class A to inherit properties of a class B

7 / 27

7. The ability of a class to derive properties from a previously defined class is called

8 / 27

8. The mechanism that binds code and Data together and keeps them secure from outside world is known as

9 / 27

9. A class can have how many destructor

10 / 27

10. The constructor with out parameters is called

11 / 27

11. Which of the following functions of class can not take argument and has no return type

12 / 27

12. Which of the following functions of class have argument but has no return type

 

13 / 27

13. Which of the following functions of class is automatically executed when an object of the class is destroyed

14 / 27

14. Which of the following is true about a constructor

15 / 27

15. Which of the following functions of a class is automatically executed when an object of the class is created

16 / 27

16. Member of class specified as _____ are accessible only to method of the class

17 / 27

17. Which of the following specifier is used to access class member outside class

18 / 27

18. Members of object are accessed with

19 / 27

19. ____is a default access specifier for members of class in c++

20 / 27

20. Which of the following are types of access specifier

21 / 27

21. Which sections of a class can a member function of that class access

22 / 27

22. Which of the following is a user defined Data type

23 / 27

23. In c++ the functions of a class are called

24 / 27

24. Data members are also called

25 / 27

25. The attributes of a class are called

26 / 27

26. In c++ object of the class is also called

27 / 27

27. A programming technique in which program are written on the basis of object is called

Your score is

The average score is 0%

0%

Chapter 8 All MCQS

0
Created on By admin

FB_CS_2nd_Ch8

Federal Board Computer Science Part 2 Chapter 8 MCQS

1 / 32

1. Inheritance is used to:

2 / 32

2. Constructors are usually used for:

3 / 32

3. The name of destructor is always preceeded by the symbol:

4 / 32

4. Destructor is used for:

5 / 32

5. A constructor is called whenever:

6 / 32

6. In inheritance, a class derived from more than one parent class is called:

7 / 32

7. If class A inherits from class B, then B is called___________ of A. A is called_______ of B.

8 / 32

8. The base class is also called:

9 / 32

9. The derived class is also called:

10 / 32

10. Which of the following class inherits all the capabilities of the base class?

11 / 32

11. _________ is the mechanism that allows a class A to inherit properties of a class B.

12 / 32

12. The mechanism that binds code and data together and keeps them secure from outside world is known as:

13 / 32

13. A class can have how many destructor?

14 / 32

14. The constructor without parameter is called?

15 / 32

15. Which of the following functions of class cannot take arguments and has no return type?

16 / 32

16. Which of the following functions of class have arguments but has no return type?

17 / 32

17. Which of the following functions of class is automatically executed when an object of the class is destroyed?

18 / 32

18. Which of the following is true about a constructor?

19 / 32

19. Which of the following functions of class is automatically executed when an object of the class is created?

20 / 32

20. Member of a class specified as __________ are accessible only to method of the class.

21 / 32

21. Which of the following specifiers is used to access class members outside the class?

22 / 32

22. Members of objects are accessed with.

23 / 32

23. __________ is a default access specifier for members of class in c++.

 

24 / 32

24. Which of the following are types of access specifiers?

25 / 32

25. Which of the following is a user defined data type?

26 / 32

26. Which sections of a class can a member function of that class access?

27 / 32

27. The object of a class contains:

28 / 32

28. Data member is also called?

29 / 32

29. In C++, the function of a class are called?

30 / 32

30. The attributes of a class are called?

31 / 32

31. In c++, object of the class is also called?

32 / 32

32. A programming technique in which programs are written on the basis of objects is called:

Your score is

The average score is 0%

0%

Chapter 9 All MCQS

1
Created on By admin

FB_CS_2nd_Ch9

Federal Board Computer Science Part 2 Chapter 9 MCQS

1 / 11

1. What is use of eof()?

2 / 11

2. Which of the following is the correct syntax of closing a file in C++?

3 / 11

3. Which of the following function is used to write a single character to a file?

4 / 11

4. Which of the following function is used to read data character by character from file?

5 / 11

5. The classes Ifstream, ofstream and fstream are defined in:

6 / 11

6. Which of the following is used to open a file in binary mode?

7 / 11

7. Which of the following stream class is used to perform both Input and output file

operations?

8 / 11

8. Which of the following stream class is used to perform input file operations?

9 / 11

9. Which of the following is not a file opening mode?

10 / 11

10. Which of the following are file handling operations?

11 / 11

11. A file is stored In:

Your score is

The average score is 18%

0%