CS504 4 th Quiz solved by MCS GROUP

Similar documents
CS504-Softwere Engineering -1 LATEST SOLVED SUBJECTIVES FROM FINALTERM PAPERS

The New C Standard (Excerpted material)

Contents of Lecture 3

Programming in C++ 6. Floating point data types

Chapter 1 & 2 Introduction to C Language

Question No: 1 ( Marks: 1 ) - Please choose one One difference LISP and PROLOG is. AI Puzzle Game All f the given

EL6483: Brief Overview of C Programming Language

Static Analysis in C/C++ code with Polyspace

QUIZ. 1. Explain the meaning of the angle brackets in the declaration of v below:

Ch. 12: Operator Overloading

Full file at C How to Program, 6/e Multiple Choice Test Bank

Ch. 3: The C in C++ - Continued -

C Programming. Course Outline. C Programming. Code: MBD101. Duration: 10 Hours. Prerequisites:

An Introduction to Python (TEJ3M & TEJ4M)

Chapter 1 Getting Started

Section Notes - Week 1 (9/17)

QUIZ. What is wrong with this code that uses default arguments?

The component base of C language. Nguyễn Dũng Faculty of IT Hue College of Science

Data Representation and Storage. Some definitions (in C)

But first, encode deck of cards. Integer Representation. Two possible representations. Two better representations WELLESLEY CS 240 9/8/15

Two Types of Types. Primitive Types in Java. Using Primitive Variables. Class #07: Java Primitives. Integer types.

Type Checking. Prof. James L. Frankel Harvard University

CSC C69: OPERATING SYSTEMS

CS16 Week 2 Part 2. Kyle Dewey. Thursday, July 5, 12

QUIZ. Can you find 5 errors in this code?

ELEC 377 C Programming Tutorial. ELEC Operating Systems

CS61C Machine Structures. Lecture 4 C Pointers and Arrays. 1/25/2006 John Wawrzynek. www-inst.eecs.berkeley.edu/~cs61c/

ECEN 449 Microprocessor System Design. Review of C Programming

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

1. What is byte order?

All the subjective part of 2011 papers solved complete reference numbers

CS510 Advanced Topics in Concurrency. Jonathan Walpole

.. Cal Poly CPE 101: Fundamentals of Computer Science I Alexander Dekhtyar..

C++ Undefined Behavior

Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY Fall Quiz I

C++ for Java Programmers

Features of C. Portable Procedural / Modular Structured Language Statically typed Middle level language

CSCI 2212: Intermediate Programming / C Review, Chapters 10 and 11

Pragma intrinsic and more

C#: framework overview and in-the-small features

We would like to find the value of the right-hand side of this equation. We know that

Agenda. Peer Instruction Question 1. Peer Instruction Answer 1. Peer Instruction Question 2 6/22/2011

CS201 Latest Solved MCQs

In examining performance Interested in several things Exact times if computable Bounded times if exact not computable Can be measured

Programming in C++ 5. Integral data types

CS 61C: Great Ideas in Computer Architecture C Pointers. Instructors: Vladimir Stojanovic & Nicholas Weaver

5.Coding for 64-Bit Programs

ECEN 449 Microprocessor System Design. Review of C Programming. Texas A&M University

HW1 due Monday by 9:30am Assignment online, submission details to come

Important From Last Time

Page 1. Today. Important From Last Time. Is the assembly code right? Is the assembly code right? Which compiler is right?

Exceptions Programming 1 C# Programming. Rob Miles

Exceptions. Exceptions. Exceptional Circumstances 11/25/2013

Topic 6: A Quick Intro To C. Reading. "goto Considered Harmful" History

Important From Last Time

개발과정에서의 MATLAB 과 C 의연동 ( 영상처리분야 )

Introduction to C++ Introduction. Structure of a C++ Program. Structure of a C++ Program. C++ widely-used general-purpose programming language

} Evaluate the following expressions: 1. int x = 5 / 2 + 2; 2. int x = / 2; 3. int x = 5 / ; 4. double x = 5 / 2.

Exception Handling Introduction. Error-Prevention Tip 13.1 OBJECTIVES

CS107 Handout 13 Spring 2008 April 18, 2008 Computer Architecture: Take II

C Syntax Out: 15 September, 1995

CS Programming In C

Computers Programming Course 5. Iulian Năstac

CS 11 C track: lecture 5

ECE 15B COMPUTER ORGANIZATION

Introduction to C++ with content from

QUIZ. What are 3 differences between C and C++ const variables?

Introduction to C. Why C? Difference between Python and C C compiler stages Basic syntax in C

Chapter 1 INTRODUCTION SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

C Language Advanced Concepts. Microcomputer Architecture and Interfacing Colorado School of Mines Professor William Hoff

Introduction to Programming (Java) 2/12

Overview AEG Conclusion CS 6V Automatic Exploit Generation (AEG) Matthew Stephen. Department of Computer Science University of Texas at Dallas

First of all, it is a variable, just like other variables you studied

Practical C++ Programming

Project Data: Manipulating Bits

CSCI-1200 Data Structures Fall 2017 Lecture 5 Pointers, Arrays, & Pointer Arithmetic

C: How to Program. Week /Mar/05

Page 1. Today. Last Time. Is the assembly code right? Is the assembly code right? Which compiler is right? Compiler requirements CPP Volatile

Communication settings: Network configuration can be done via the Anybus IP configuration setup tool or via the on board Web server

Introduction to Programming Using Java (98-388)

Finding Bugs Using Xcode Runtime Tools

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Lecture 17 Bit Operations

15-213, Spring 2008 Lab Assignment L1: Manipulating Bits Assigned: Jan. 15, Due: Wed., Jan. 30, 11:59PM

c) Comments do not cause any machine language object code to be generated. d) Lengthy comments can cause poor execution-time performance.

MCS-284, Fall 2015 Data Lab: Manipulating Bits Assigned: Sept. 22, Due: Tues., Sept. 29, 11:59PM

Arithmetic and Bitwise Operations on Binary Data

Network configuration can be done via the Anybus IP configuration setup tool or via the on board Web server.

The Instruction Set. Chapter 5

CS 61C: Great Ideas in Computer Architecture Intro to Assembly Language, MIPS Intro

Quiz Start Time: 09:34 PM Time Left 82 sec(s)

EL2310 Scientific Programming

Binghamton University. CS-120 Summer Introduction to C. Text: Introduction to Computer Systems : Chapters 11, 12, 14, 13

Fundamentals of Programming Session 2

LESSON 5 FUNDAMENTAL DATA TYPES. char short int long unsigned char unsigned short unsigned unsigned long

Assertions, pre/postconditions

Structures, Unions Alignment, Padding, Bit Fields Access, Initialization Compound Literals Opaque Structures Summary. Structures

G52CPP C++ Programming Lecture 20

C# MOCK TEST C# MOCK TEST II

CS61C : Machine Structures

Transcription:

CS504 4 th Quiz solved by MCS GROUP All are solved 100% correct with pages # remember us in ur prayerssss. Quiz Start Time: 01:26 PM Time Left 90 Question # 1 of 10 ( Start time: 01:26:29 PM ) Total Marks: 1 The order in which bytes of one word are stored is dependent software language syntax hardware (181) Quiz Start Time: 01:26 PM Time Left 89 Question # 2 of 10 ( Start time: 01:27:31 PM ) Total Marks: 1 Comma (, ) is very dangerous because Compiler does not recognise this symbol It creates linkage problem It causes side effects (176) All of the given options Quiz Start Time: 01:26 PM Time Left 88

Question # 3 of 10 ( Start time: 01:29:22 PM ) Total Marks: 1 cause major portability issues Loops Bugs in code Sizes of data types (179) Conditional Structures Quiz Start Time: 01:26 PM Time Left 89 Question # 4 of 10 ( Start time: 01:30:05 PM ) Total Marks: 1 Be very careful when you use functions with side effects functions that change the values of the Objects Classes Structures Variables (correct is that ) Be very careful when you use functions with side effects functions that change the values of the parameters.(176) Quiz Start Time: 01:26 PM Time Left 89 Question # 5 of 10 ( Start time: 01:31:30 PM ) Total Marks: 1 A is a variance from a desired product attribute. Exception Error Mistake Defect (192)

Quiz Start Time: 01:26 PM Time Left 89 Question # 6 of 10 ( Start time: 01:32:13 PM ) Total Marks: 1 When a small set of functions (which use each other) is so overwhelmingly the bottleneck, there are two alternatives: use a better algorithm OR re-write the code (177) debug the code OR place assertions in code remove the functions OR add more functions changed programming language OR compiler at least Quiz Start Time: 01:26 PM Time Left 88 Question # 7 of 10 ( Start time: 01:33:10 PM ) Total Marks: 1 struct packed_struct { unsigned int f1:1; } pack; Here in "packed_struct": value of f1 = 1 size of f1 = 1 bit (183) value of f1 should not exceede 1 None of given options Quiz Start Time: 01:26 PM Time Left 88

Question # 8 of 10 ( Start time: 01:34:41 PM ) Total Marks: 1 The complexity of a program may if there are exceptional paths in it Decrease Increase (185) Remain same All of given options Quiz Start Time: 01:26 PM Time Left 89 Question # 9 of 10 ( Start time: 01:35:30 PM ) Total Marks: 1 The C/C++ language does not define the alignment of items within structures classes unions All of the given options (182) Quiz Start Time: 01:26 PM Time Left 89 Question # 10 of 10 ( Start time: 01:36:23 PM ) Total Marks: 1 Consider the following statement: int a,b=10; Which of the following is correct: variable "a" is initialized to 10 Variable "b" is initialized to 10 Both variables "a" and "b" are initialized to 10 variables can not be initialized this way (that is correct 95%) Quiz Start Time: 01:45 PM Time Left 88

Question # 1 of 10 ( Start time: 01:45:00 PM ) Total Marks: 1 Comma (, ) is very dangerous because Compiler does not recognise this symbol It creates linkage problem It causes side effects (176) All of the given options Quiz Start Time: 01:45 PM Time Left 88 Question # 2 of 10 ( Start time: 01:45:22 PM ) Total Marks: 1 The greatest advantage of exception handling is its ability to handle: Asynchronous errors (184) Syntax errors Memory errors Control Structure errors Quiz Start Time: 01:45 PM Time Left 89 Question # 3 of 10 ( Start time: 01:46:27 PM ) Total Marks: 1 Verification and validation are the processes in which we check a product against its and the of the users who will be using it statements, expectations specifications, expectations (192) specifications, arguments statements, arguments Quiz Start Time: 01:45 PM Time Left 89

Question # 4 of 10 ( Start time: 01:47:19 PM ) Total Marks: 1 The order in which bytes of one word are stored is dependent hardware (181) software language syntax Quiz Start Time: 01:45 PM Time Left 88 Question # 5 of 10 ( Start time: 01:48:00 PM ) Total Marks: 1 Identify the TRUE statement: Portability effects security Size of data types vary from one machine to other Size of control structures vary from one machine to other None of the given options Quiz Start Time: 01:45 PM Time Left 89 Question # 6 of 10 ( Start time: 01:49:19 PM ) Total Marks: 1 The idea behind exception handling is to raise some error flag every time The code compiles The code links Memory is allocated Something goes wrong (184) Quiz Start Time: 01:45 PM Time Left 82 Question # 7 of 10 ( Start time: 01:50:05 PM ) Total Marks: 1

The complexity of a program may if there are exceptional paths in it Decrease Increase (185) Remain same All of given options Quiz Start Time: 01:45 PM Time Left 88 Question # 8 of 10 ( Start time: 01:50:47 PM ) Total Marks: 1 if (e.title() == CEO e.salary() > 10000) in the above statement if e.title()=="ceo") is TRUE then Second part is not evaluated Second part is always evaluated Second part must also be TRUE Second part is not evaluated but e.salary() is called (185) Quiz Start Time: 01:45 PM Time Left 87 Question # 9 of 10 ( Start time: 01:52:13 PM ) Total Marks: 1 if a major rework is required to translate a program written for one environment to another, it means code is not or less Secure Bug Free plateform dependent Portable (179) Quiz Start Time: 01:45 PM Time Left 89 Question # 10 of 10 ( Start time: 01:53:34 PM ) Total Marks: 1 A test case involves Input/output specification plus a statement of the function under test

Steps to perform the function Expected results that the software application produces All of the given options (195) Quiz Start Time: 02:00 PM Time Left 89 Question # 1 of 10 ( Start time: 02:00:50 PM ) Total Marks: 1 Comma (, ) is very dangerous because Compiler does not recognise this symbol It creates linkage problem It causes side effects (176) All of the given options Quiz Start Time: 02:00 PM Time Left 89 Question # 2 of 10 ( Start time: 02:01:14 PM ) Total Marks: 1 The C/C++ language does not define the alignment of items within structures classes unions All of the given options (182)

Quiz Start Time: 02:00 PM Time Left 89 Question # 3 of 10 ( Start time: 02:02:40 PM ) Total Marks: 1 80/20 rule states that: you spend 80 percent of your time in 20 percent of the code (171) you spend 20 percent of your time in 80 percent of the code We should try to optimized 80 percent or at least 20 percent of the code None of the given options. Quiz Start Time: 02:00 PM Time Left 77 Question # 4 of 10 ( Start time: 02:04:05 PM ) Total Marks: 1 Bit fields allow the packing of data in a structure. using Bit fields we can: Read 9 bit integers ( FORM MY POINT OF VIEW I M SURE 99% ON THIS ) avoid memory leakages avoid memory overflow Avoid syntax errors READ PAGE # 183 FOR THIS ANSWER... Quiz Start Time: 02:00 PM Time Left 89

Question # 5 of 10 ( Start time: 02:05:28 PM ) Total Marks: 1 Some bit field members are stored: I) left to right II) right to left III) in circular array only (I) is true Only (II) is true Both (I) and (II) are true (183) All of the options (I, II and III) are true Quiz Start Time: 02:00 PM Time Left 89 Question # 6 of 10 ( Start time: 02:06:37 PM ) Total Marks: 1 Exception handling is a powerful technique that separates error-handling code from code. Normal (184) Faulty Buggy Complex Quiz Start Time: 02:00 PM Time Left 85 Question # 7 of 10 ( Start time: 02:07:09 PM ) Total Marks: 1 Verification and validation are the processes in which we check a product against its and the of the users who will be using it

statements, expectations specifications, expectations (192) specifications, arguments statements, arguments Quiz Start Time: 02:00 PM Time Left 88 Question # 8 of 10 ( Start time: 02:07:54 PM ) Total Marks: 1 When an error is thrown the overall system (on the lookout for this error flag) responds by the error. Ignoring Casting Catching (184) All of the given options

Quiz Start Time: 02:00 PM Time Left 88 Question # 9 of 10 ( Start time: 02:09:15 PM ) Total Marks: 1 cause major portability issues Loops Bugs in code Sizes of data types (179) Conditional Structures Quiz Start Time: 02:00 PM Time Left 87 Question # 10 of 10 ( Start time: 02:10:08 PM ) Total Marks: 1 The complexity of a program may if there are exceptional paths in it Decrease Increase (185) Remain same All of given options Quiz Start Time: 02:17 PM Time Left 89

Question # 1 of 10 ( Start time: 02:17:58 PM ) Total Marks: 1 In order to make a code more portable, Instead of using vendor specific language extensions, use as much as possible ANSI ISO CMMI STL (179)) Quiz Start Time: 02:17 PM Time Left 89 Question # 2 of 10 ( Start time: 02:18:45 PM ) Total Marks: 1 Verification and validation are the processes in which we check a product against its and the of the users who will be using it statements, expectations specifications, expectations (192) specifications, arguments statements, arguments Quiz Start Time: 02:17 PM Time Left 89

Question # 3 of 10 ( Start time: 02:19:24 PM ) Total Marks: 1 Bit fields allow the packing of data in a structure. using Bit fields we can: Read 9 bit integers avoid memory leakages avoid memory overflow Avoid syntax errors Quiz Start Time: 02:17 PM Time Left 87 Question # 4 of 10 ( Start time: 02:20:49 PM ) Total Marks: 1 The C/C++ language has not specified whether is arithmetic or logical. Right shift >> (181) Right shift << && Quiz Start Time: 02:17 PM Time Left 89 Question # 5 of 10 ( Start time: 02:21:54 PM ) Total Marks: 1 Exception handling provides:

Portability mechanism Code Usability mechanism Error Handling mechanism All of the given options Quiz Start Time: 02:17 PM Time Left 89 Question # 6 of 10 ( Start time: 02:23:14 PM ) Total Marks: 1 if (e.title() == CEO e.salary() > 10000) in the above statement if e.title()=="ceo") is TRUE then Second part is not evaluated Second part is always evaluated Second part must also be TRUE Second part is not evaluated but e.salary() is called (185) Quiz Start Time: 02:17 PM Time Left 89 Question # 7 of 10 ( Start time: 02:23:56 PM ) Total Marks: 1 Identify the TRUE statement:

Portability effects security Size of data types vary from one machine to other Size of control structures vary from one machine to other None of the given options ( sure 90 %) Quiz Start Time: 02:17 PM Time Left 89 Question # 8 of 10 ( Start time: 02:25:16 PM ) Total Marks: 1 The idea behind exception handling is to raise some error flag every time The code compiles The code links Memory is allocated Something goes wrong (184) Quiz Start Time: 02:17 PM Time Left 88 Question # 9 of 10 ( Start time: 02:25:56 PM ) Total Marks: 1 Consider the following statement: int a,b=10; Which of the following is correct: variable "a" is initialized to 10 Variable "b" is initialized to 10 Both variables "a" and "b" are initialized to 10 variables can not be initialized this way ( sure 95 %)

Quiz Start Time: 02:17 PM Time Left 87 Question # 10 of 10 ( Start time: 02:26:30 PM ) Total Marks: 1 80/20 rule states that: you spend 80 percent of your time in 20 percent of the code (177) you spend 20 percent of your time in 80 percent of the code We should try to optimized 80 percent or at least 20 percent of the code None of the given options. Quiz Start Time: 02:29 PM Time Left 89 Question # 1 of 10 ( Start time: 02:29:10 PM ) Total Marks: 1 The complexity of a program may if there are exceptional paths in it Decrease Increase (185) Remain same All of given options

Quiz Start Time: 02:29 PM Time Left 86 Question # 2 of 10 ( Start time: 02:29:43 PM ) Total Marks: 1 if a major rework is required to translate a program written for one environment to another, it means code is not or less Secure Bug Free plateform dependent Portable (179) Quiz Start Time: 02:29 PM Time Left 89 Question # 3 of 10 ( Start time: 02:30:28 PM ) Total Marks: 1 The C/C++ language has not specified whether is arithmetic or logical. Right shift >> (181) Right shift << &&

Quiz Start Time: 02:29 PM Time Left 88 Question # 4 of 10 ( Start time: 02:30:59 PM ) Total Marks: 1 The order in which bytes of one word are stored is dependent hardware (181) software language syntax Quiz Start Time: 02:29 PM Time Left 89 Question # 5 of 10 ( Start time: 02:31:38 PM ) Total Marks: 1 In order to write a portable code which of the following guideline will be helpful: Stick to the standards Program in the mainstream Size of data types All of the given options

Quiz Start Time: 02:29 PM Time Left 89 Question # 6 of 10 ( Start time: 02:33:04 PM ) Total Marks: 1 In order to make a code more portable, Instead of using vendor specific language extensions, use as much as possible ANSI ISO CMMI STL (179) Quiz Start Time: 02:29 PM Time Left 85 Question # 7 of 10 ( Start time: 02:33:43 PM ) Total Marks: 1 Exception handling provides: Portability mechanism Code Usability mechanism Error Handling mechanism All of the given options (100 %) Quiz Start Time: 02:29 PM Time Left 86

Question # 8 of 10 ( Start time: 02:34:08 PM ) Total Marks: 1 Bit fields are a convenient way to express many difficult operations. However, bit fields suffer from one problem Lack of usability Lack of security Lack of performance Lack of portability (183) Quiz Start Time: 02:29 PM Time Left 87 Question # 9 of 10 ( Start time: 02:35:11 PM ) Total Marks: 1 cause major portability issues Loops Bugs in code Sizes of data types (179) Conditional Structures Quiz Start Time: 02:29 PM Time Left 87 Question # 10 of 10 ( Start time: 02:35:53 PM ) Total Marks: 1 80/20 rule states that:

you spend 80 percent of your time in 20 percent of the code (177) you spend 20 percent of your time in 80 percent of the code We should try to optimized 80 percent or at least 20 percent of the code None of the given options.