
Since there is no mention of explanation I am writing only options.
In the paper 8th multiple choice's question was un clear, so i was unable to answer it, hope you understand.
Answers: -
1).b
2.) c
3.) c
4.) a
5.) b
6.) d
7.) a
8.) Question was unclear
9.) d
If any doubts plz comment I will try to explain,
Thanks
NEED ASAP PLEASE WILL GIVE GOOD RATE RIGHT AWAY FOR ALL ANSWERS! MULTIPLE CHOICE no explanation...
Programs written in a language that supports pointers and dynamic memory allocation can suffer from dangling pointers and lost heap-dynamic variables (or garbages). (a) A dangling pointer is a pointer that contains the address of a piece of memory that no longer belongs to the program. Give one scenario that can cause dangling pointers. Support your scenario with sample codes in your favorite language. Poorly implemented languages leave the detection of the dangling pointer problem to the operating system. Suggest...
NEED ASAP PLEASE WILL GIVE GOOD RATE RIGHT AWAY FOR ALL
ANSWERS!
JAVA
C) Write a code to define/ derive a new subclass named
superVillan. The SuperVillan object has an objective (like world
domination- string) and a nemesis (SuperHero) Add these attributes
to the sub class. write proper cinstructor
I: Programming rhe following code segment w segment will be used in the epresents a superhero be used in the next two ques blic class Superhero ( private final string private...
17. Given the following definition of function £, what does the expression "t (1: 2: 3]::" return? let rec f listl match listl with 1 I head::rest -> head f resti b. 6 c. 120 d. 123 456 e. g. 14; 5; 6] h. (6; 5; 4] i. Error message j. None of the above 18. Which of the following is the correct meaning of the C declaration "double (*a [n]) "? a is an array of n pointers to...
Quick C Programming Questions: I) Which of the following is false? A) To pass a structure by reference, pass the address of the structure variable. B) A way to pass an array by value is to create a structure with the array as a member then pass the name of the structure. C) To pass a structure by reference, pass the name of the structure variable. D) Passing large structures by reference is more efficient than passing large structures by...
Multiple Choice Multiple Choice Section 4.1 Pointers and Dynamic Memory Consider the following statements: int *p; int i; int k; i = 42; k = i; p = &i; After these statements, which of the following statements will change the value of i to 75? A. k = 75; B. *k = 75; C. p = 75; D. *p = 75; E. Two or more of the answers will change i to 75. Consider the following statements: int i =...
i need answers to all of the following problems
19. A program is used to describe important machine motions and dimensions within the program. a. Block b. Line c. Code d. Word 20. What is an alphanumeric character or punctuation mark in reference to programming language terminology? a) Command b) Script c) Word d) Programming character 21. What are used to describe such important information as machine motion and dimensions in programs? a) Blocks b) Words c) Sentences d) Codes...
NEED ASAP PLEASE WILL GIVE GOOD RATE RIGHT AWAY FOR ALL ANSWERS! A) write a regular expression (use regular expression syntax) to represent a floating point number, where the number begiywith an optional sign followed by at least 1 digit , followed by a decimal point and one or more other digits. Ex: -33.9 , +1.11919, 1.0 B) draw a dfsa to represent the regular expression
Java | answer all the questions 17. Any Java interface must contain certain number of methods. If an interface does not have any method declared, then it is useless. (a)true (b)false 18. Suppose that the name of a parameter is user, which is passed to a JSP. How to use an EL expression to access the value of this parameter in this JSP? Answer: 19. The Java generics are used to reduce errors in Java programs using collection-type objects. Which...
Introduction: One of the most important uses of pointers is for dynamic allocation of memory. In C++ there are commands that let the user request a chunk of memory from the operating system, and use this memory to store data. There are also commands to return memory back to the O/S when the program is finished using the data. In this lab, we will explore some of the things that can go wrong when using dynamic memory and discuss how...
This is my Final Multiple Choice section of my Final Exam Please answer ABCD and neatly please and thank you and all questions are with microsoft visual studio c++. MULTIPLE CHOICE. Choose ONLY ONE alternative that best completes the statement or answers the question. 1) Which of the following statements are correct? 1) _______ A) char charArray[2][] = {{'a', 'b'}, {'c', 'd'}}; B) char charArray[2][2] = {{'a', 'b'}, {'c', 'd'}}; C) char charArray[][] = {{'a', 'b'}, {'c', 'd'}};D) char charArray[][]...