Skip to main content

CS201 Quiz No.1 Lecture 1-7

1 - Application Softwares are use to
1. Type letters
2. Control computer hardware
3. Solve end user problems
4. Develop Graphics
Correct Choice : 3 From Lecture # 2

2
 - Computer can do,
1. More than what we tell it
2. Less then what we tell it
3. Like human being
4. Exactly what we tell it
Correct Choice : 4 From Lecture # 2

3
 - we can control our program while it is running by using
1. Debugger
2. Linker
3. Loader
4. Editor
Correct Choice : 1 From Lecture # 2

4
 - _______are part of system software
1. Linker and loaders
2. Opreating System and Linker
3. Drivers
4. None of the Given
Correct Choice : 1 From Lecture # 2

5
 - The remainder (%) operator is,
1. An arithmetic operator
2. A logical operator
3. A relational operator
4. A division operator
Correct Choice : 1 From Lecture # 3

6
 - int x = 2 * 3 + 4 * 5; What value will x contain in the sample code above?
1. 22
2. 26
3. 46
4. 50
Correct Choice : 2 From Lecture # 3

7
 - What is the correct value to return to the operating system upon the successful
completion of a program?
1. -1
2. 1
3. 0
4. Programs do not return a value.
Correct Choice : 3 From Lecture # 3

8
 - What is the only function all C++ programs must contain?
1. start()
2. system()
3. main()
4. program()
Correct Choice : 3 From Lecture # 3

9
 - What punctuation is used to signal the beginning and end of code blocks?
1. { }
2. - > and < -
3. BEGIN and END
4. ( and )
Correct Choice : 1 From Lecture # 3

10
 - What punctuation ends most lines of C++ code?
1. (dot)
2. (semi-colon)
3. (colon)
4. (single quote)
Correct Choice : 2 From Lecture # 3

11
 - Which of the following is a correct comment?
1. */ Comments */
2. ** Comment **
3. /* Comment */
4. { Comment }
Correct Choice : 3 From Lecture # 3

12
 - Which of the following is not a correct variable type?
1. float
2. real
3. int
4. double
Correct Choice : 2 From Lecture # 3

13
 - Which of the following is the correct operator to compare two variables?
1. :=
2. =
3. equal
4. ==
Correct Choice : 4 From Lecture # 3

14
 - Identify the correct statement
1. Programmer can use comments to include short explanations within the source
code itself.
2. All lines beginning with two slash signs are considered comments.
3. Comments very important effect on the behavior of the program
4. both
Correct Choice : 2 From Lecture # 3

15
 - There is a unique function in C++ program by where all C++ programs start their
execution
1. Start()
2. Begin()
3. Main()
4. Output()
Correct Choice : 3 From Lecture # 3

16
 - Every statement in C++ program should end with
1. A full stop (.)
2. A Comma (,)
3. A Semicolon (;}
4. A colon (:)
Correct Choice : 3 From Lecture # 3

17
 - A variable is/are
1. String that varies during program execution
2. A portion of memory to store a value
3. Those numbers that are frequently required in programs
4. None of these
Correct Choice : 3 From Lecture # 3

18
 - The value of 2*15/3*7+3*2 is
1. 146
2. 76
3. 8
4. 70
Correct Choice : 2 From Lecture # 3

19
 - The size of a double variable is
1. 2 bytes
2. 4 bytes
3. 8 bytes
4. 10 bytes
Correct Choice : 3 From Lecture # 3

20
 - Which of the following are NOT relational operators ?
1. >
2. /p>
3. ==
4. >=
Correct Choice : 3 From Lecture # 3

21
 - Which of the following can not be used as identifiers?
1. Letters
2. Digits
3. Underscores
4. Spaces
Correct Choice : 4 From Lecture # 4

22
 - result of " number = number / 10; " will be equel to The " number = number % 10; "
1. TRUE
2. FALSE
3.
4.
Correct Choice : 2 From Lecture # 4

23
 - int x,y =10; cout x endl; The value of the x will be in the above code
1. 0
2. 10
3. unknown Value
4. -1
Correct Choice : 3 From Lecture # 4

24
 - In flow chart process is represented by
1. Rectangle
2. Arrow symbol
3. Oval
4. Circle
Correct Choice : 1 From Lecture # 5

25
 - Which of the following is the boolean operator for logical-and?
1. &
2. &&
3. |
4. |&
Correct Choice : 2 From Lecture # 5

26
 - Evaluate !(1 && !(0 || 1)).
1. TRUE
2. FALSE
3. Unevaluatable
4. None Of The Above
Correct Choice : 1 From Lecture # 5


27 - Which one of the following operators is a unary operator?
1. OR ( || )
2. AND ( && )
3. XOR ( ^ )
4. Logical NOT ( ! )
Correct Choice : 4 From Lecture # 5

28
 - Which of the following shows the correct syntax for an if statement?
1. if expression
2. if{ expression
3. if( expression)
4. expression if
Correct Choice : 3 From Lecture # 5

29 - In if structure the block of statements is executed only,
1. Type letters
2. When it contain arithmetic operators
3. When it contain logical operators
4. When the condition is true
Correct Choice : 4 From Lecture # 6

30 - Loader transfers the executable code from main memory to hard disk.
1. TRUE
2. FALSE
Correct Choice : 2 From Lecture # 6

31 - What is the final value of x when the code int x; for(x=0; x < 10; x++) {} is run?
1. 10
2. 9
3. 0
4. 8
Correct Choice : 1 From Lecture # 6

32 - When does the code block following while(x< 100) execute?
1. When x is less than one hundred
2. When x is greater than one hundred
3. When x is equal to one hundred
4. While it wishes
Correct Choice : 2 From Lecture # 6

33 - Which is not a loop structure?
1. For
2. Do while
3. While
4. Repeat Until
Correct Choice : 4 From Lecture # 6

34 - for (int n=10; n >0; n++) { cout n ", "; } How many Time Loop will run
1. 100
2. Infinite Time
3. 1000
4. 10000000
Correct Choice : 2 From Lecture # 6

35 - When break statement is encountered in switch statement, it
1. Stops the entire program
2. Stops the execution of current statement
3. Exits from switch statement
4. None of the given options
Correct Choice : 3 From Lecture # 7

36 - A for loop usually consist of __________ expressions.
1. 1
2. 3
3. 2
4. 4
Correct Choice : 3 From Lecture # 7

37 - How many times is a do while loop guaranteed to loop?
1. 0
2. Variable
3. Infinitely
4. 1
Correct Choice : 4 From Lecture # 7

38 - x = x + 4 ; Is Equal to
1. x += 4 ;
2. x =+ 4 ;
3. x == 4 ;
4. x =! 4 ;
Correct Choice : 1 From Lecture # 7

39 - The first expression in a for loop is
1. The test expression.
2. The step value of the loop.
3. The first value of our counter variable.
4. None of the above.
Correct Choice : 3 From Lecture # 7

40 - What is the break statement used for ?
1. To quit the program.
2. To quit the current iteration.
3. To stop the current iteration and begin the next iteration.
4. None of the above.


Comments

Popular posts from this blog

CS614 Quiz No.4 Shared by Abdul_Mateen (Solved)

Question # 1 of 10 ( Start time: 01:03:34 PM ) Total Marks: 1 The first step of the “12-steps data warehouse implementation approach” of Shaku Atre is: Select correct option: Finding user needs (Page No. 336) Planning system resources Finding system scope Data acquisition and cleansing Question # 2 of 10 ( Start time: 01:04:15 PM ) Total Marks: 1 Users do not care, how advance the front end of your DWH is, what they care is that: Select correct option: Tables should be properly denormalized Proper partitioning technique should be used At least star or snow flake schema should be implemented They should get information in timely manner and the way they want   Question # 3 of 10 ( Start time: 01:04:49 PM ) Total Marks: 1 Which of the following is NOT one of the top-10 mistakes that should be avoided during DWH development? Select correct option: Not interacting directly with end user Not being an accommodating person (Page No. 316) Isolating IT support p...

CS504 Quiz No.3 Shared by Angel

Question # 1 of 10 ( Start time: 09:08:01 PM ) Total Marks: 1 Defining the services of an object means: Select correct option: What it does?        ok What it knows? Who knows it? Whome it knows? Question # 2 of 10 ( Start time: 09:08:27 PM ) Total Marks: 1 Which one of these represents the Krutchen’s 4+1 architectural view model? Select correct option: Logical view, Process view, Physical view, Development view, Use case view Logical view, Dynamic view, Physical view, Development view, Use case view Logical view, Process view, Physical view, Development view, Sequence view Dynamic view, Process view, Physical view, Development view, Use case view Question # 3 of 10 ( Start time: 09:09:50 PM ) Total Marks: 1 Return values in Synchronous messages are represented by: Select correct option: A solid line A dotted line with label        ok A solid line with label Double line Question # 4 of 10 ( Start tim...

CS614 Quiz No.3 Shared by Sweety (Solved)

Question # 1 of 10 ( Start time: 09:48:28 PM ) Total Marks: 1 Mining multi dimensional databases allow users to: Select correct option: Categorize the data Analyze the data Summarize the data All of the given options   (Correct) Question # 2 of 10 ( Start time: 09:49:23 PM ) Total Marks: 1 As per Bill Inmon, a data warehouse, in contrast with classical applications is: Select correct option: Data driven   (Correct) Resource driven Requirement driven Time sensitive Question # 3 of 10 ( Start time: 09:50:11 PM ) Total Marks: 1 In ________learning you don’t know the number of clusters and no idea about their attributes. Select correct option: Supervised learning Unsupervised learning   (Correct) Multi Dimension modeling None of the given options Question # 4 of 10 ( Start time: 09:51:04 PM ) Total Marks: 1 Identify the TRUE statement: Select correct option: The data value increases as volume decreases   (Correct) The data value decreases ...