NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


<question>Which of these headers provides functionality for reading data from a file and for writing to a file.
<variant>fstream
<variant>iostream
<variant>math.h
<variant>string
<variant>draw
<question>What type of variable is used in the code int a = 5;
<variant> Signed 32-bit integer
<variant> Signed 8-bit integer
<variant> Signed 64-bit integer
<variant> Signed 48-bit integer
<variant> Signed 80-bit integer
<question>What does the "%" operator do?
<variant>Returns the remainder of the division
<variant>Returns a percentage of the amount
<variant>Returns a trigonometric function
<variant>Returns an integer from division
<variant>None of the above
<question>What will the program do by executing the following code: Console.WriteLine(«Hello, World!»);
<variant>Will write on a new line Hello, World!
<variant>Will write Hello, World!
<variant> Will remove all values from Hello, World!
<variant>Cut out the word Hello, World! from the whole text
<variant> Will remove all values from Hello, World!
<question>What will be equal to c if int a = 17; int b = 4; int c = a % b;
<variant>1
<variant>2
<variant>4
<variant>7
<variant>0
<question>What will be equal to c if int a = 10; int b = 4; bool c = (a == 10 && b == 4);
<variant>True
<variant>false
<variant>Null
<variant>One
<variant>14
<question>What will be equal to c if int a = 12; int c = a-;
<variant>12
<variant>11
<variant>0
<variant>1
<variant>13
<question>What will be equal to d if int a =10; int b = a++; int c = 0; int d = a + b + c + 3;
<variant>24
<variant>11
<variant>0
<variant>1
<variant>13
<question>What will be the result of calculating the expression: int d=5; bool b = true, c; c = (!b||(d>3)):
<variant>true
<variant>false
<variant> Compiler error
<variant>3
<variant>5
<question>What are conditional operators for?
<variant>For branching the program
<variant>To set conditions for the user
<variant>To optimize the program
<variant>To add a user condition
<variant>For the program
<question>What the Term function will return after executing. Code: int Termin() { int a = 5; int b = 3; if (a != 5) return a + b; else return 0;}
<variant>0
<variant>5
<variant>4
<variant>6
<variant>3
<question>Which of the components can be included in the integrated programming environment:
<variant>debugger
<variant>door closer
<variant>adjuster
<variant>linker
<variant>regulator
<question>Which of the components can be included in the integrated programming environment:
<variant>text editor
<variant>text director
<variant>text moderator
<<variant>text switch
<variant>text rector
<question>Which of the components can be included in the integrated programming environment:
<variant>compiler
<variant>door closer
<variant>adjuster
<variant>regulator
<variant>dominator
<question>If a subtraction operation is defined for two objects of class A, and the conversion operation to int is not defined, what will be called when:A a1,a2,a3=5;a3 = a1 – a2;
<variant>an error will occur
<variant>subtraction operation only
<variant>conversion to integer
<variant>addition operation only
<variant>multiplication operation only
<question>What is the name of the operator "?:"
<variant>Ternary operator
<variant>Interrogative
<variant>Direct operator
<variant>Territorial operator
<variant>indirect operator
<question>What is an array
<variant>A set of the same type of data that are located in memory sequentially one after another
<variant>A set of Unicode text values that are arranged in random order.
<variant>Data set of type int (32-bit integer)
<variant>Data set of type int (64-bit integer)
<variant>Data set of type int (48-bit integer)
<question>Types of arrays?
<variant>One- dimensional and multidimensional
<variant>Various
<variant>Complex and simple
<variant>Rubber and static
<variant>Variables
<question>What is a cycle and what are they for
<variant>Loops are needed for multiple code execution.
<variant>Cycles are needed to run the program multiple times
<variant>Loops are needed for multiple data placement.
<variant>Loops are needed to execute the code without errors.
<variant>Cycles are needed for single data placement.
<question>What are the cycles?
<variant>for, while, do-while, foreach
<variant>Large and small
<variant>Multiple
<variant>Cycle, Forich, Double Cycle
<variant>ref, out, static, root
<question>The function calculates the product of two numbers. The initial data is entered from the keyboard. What checks are advisable to enter in the program:
<variant>checking that the source data are numbers
<variant>no checks are needed, the compiler will catch all possible errors
<variant>checking the source data for equality to zero
<<variant>checking the source data for equality to one
<<variant>checking the source data for equality with five
<question>What is a constant?
<variant>A variable whose value cannot be changed.
<variant>A variable of type str
<variant>A variable that can be changed at any time.
variant>A string type variable
variant>Variable of type ostring
<question>What is the namespace operator for?:
<variant>to enclose in a group of declarations of classes, variables and functions in a separate context with its own name
<variant>for using classes, variables and functions from other program modules without using header files
<variant>to enclose in a group of declarations of classes, variables and functions for use only in the current module
<variant>to enclose in a group of declarations of classes, variables and functions for use on the next module
<<variant>to enclose in a group of declarations of classes, variables and functions for use in the previous module
<question>Which of the sets of enumerated values is written correctly:
<variant>enum;
<variant>enum < a, b = 3, c = 4, 3 >;
<variant>enum < a, b, 3, 4,5 >;
<variant>enum < a, b, 3, 4 >;
<variant>enum < a, b, 3, c=4>;
<question>What is the difference in using the following expressions #include<...> and #include"..."
<variant>the difference lies in the method of searching for the included file by the preprocessor
<variant>no differences
<variant>in the difference between not using header and source files
<variant>the difference in the use of source files
<variant>the difference in the use of header files
<question>If integer and real operands are involved in an arithmetic expression, then:
<variant> the whole type is reduced to real
<variant>compilation error
<variant>the real type is reduced to an integer
<variant>no errors
<variant>whole type
<question>If there is a semicolon after the expression, then:
<variant> is an expression operator whose action is to evaluate the expression
<variant>the expression is evaluated, and its value is stored in a special variable that can be used in the following statement
<variant>the expression is evaluated only if the assignment operation is first
<variant>the expression is evaluated only if the second is an assignment operation
<variant>the expression is evaluated only if the third is an assignment operation
<question>Specify in which expression the loss of accuracy will occur:
<variant>int i; float x = 2.134, y = 3.14; i = x/y;
<variant>short i = 0x3; float x = 2.7, v; v = i + x;
<variant>float M = 235.2; double Z = 3; Z *= M;
<variant>short х = 0x3; float x = 2.7, v; v = i - x;
<variant>float х =235.2; double Z = 3; Z += M;
<question>What is dynamic memory allocation:
<variant>memory for an object (variable) may not be allocated immediately, but during the operation of the program, memory is released manually
<variant>memory for an object (variable) may not be allocated immediately, but during the operation of the program, memory is released automatically after the program ends
<variant>memory for an object (variable) is allocated every time a variable is accessed
<variant>the memory for the object (variable) is allocated the next time the variable is accessed
<variant>memory for an object (variable) is allocated when accessing a variable
<question>Mark the true statement:
<variant>variable is declared, then changed
<variant>the variable is initialized, then declared
<variant>the variable is declared, then initialized and changed
<variant>the variable is initialized, then changed and declared
<variant>the variable is declared
<question>Which operations can be overloaded:
<variant>unary and binary
<variant>binary only
<<variant>carbon monoxide only
<variant>logical
<variant>assignments
<question>A variable of the “signed char” type can take values:
<variant>from the first half of the code table
<variant>only English alphabet characters, numbers and underscores
<variant>only from the C++ alphabet
<variant>an integer data type that is used to represent characters.
<variant>character data type
<question>What is the numeric value of the expression e/2*a-abs(e)*1e0 by e = 4, a = 2:
<variant>0
<variant>3
<variant>1
<variant>2
<variant>4
<question>Choose the correct statement:
<variant>an integer variable can be assigned a real constant
<variant> an integer constant can be assigned an integer variable
<variant> an integer constant can be assigned a real variable
<variant> a variable constant can be assigned to a real integer
<variant>an integer constant can be assigned a variable
<question>Choose the correct statement:
<variant>an integer variable can be assigned an integer constant
<variant> an integer constant can be assigned an integer variable
<variant> an integer constant can be assigned a real variable
<variant> a variable constant can be assigned to a real integer
<variant>an integer constant can be assigned a variable
<question>Which expression does not contain syntax errors:
<variant>((cos(3*a+1.*abs(x))))
<variant>sin(abs(0.6(e*3))
<variant>a* abs(t)(2t)
<variant>a/exp(t)(2t)
<variant>a-exp(t)(2t)
<question>Which expression does not contain syntax errors:
<variant>0XCC00*.34E-4/_do/k-2
<variant>a*exp(t)(2t)
<variant>sin(abs(0.6(e*3))
<variant>a/exp(t)(2t)
<variant>a-exp(t)(2t)
<question>What is the numeric value of the expression sqrt(4)+142/20*2:
<variant>16
<variant>5
<variant>9
<variant>7
<variant>14
<question>What will be displayed as a result of executing a program fragment a=5; b=3; cout << a << "=Z(" << b << ")"; Here a and b are integer variables.
<variant>5=Z(3)
<variant>5"=Z("3)
<variant>5=Z(3")"
<variant> a=Z(b)
<variant> a"=Z("b")"

<question>What will the variable "c" be equal to after executing this program: a = 26; b = 6; c = a % b + b;
<variant>8
<variant>2
<variant>10
<variant>5
<variant>6
<question>What will the variable "c" be equal to after executing this program: a = 24; b = 5; b = a / b; c = a % (b + 1);
<variant>4
<variant>2
<variant>10
<variant>5
<variant>6
<question>Determine the value of the variable "a" after executing the program fragment: a = 10; if ( a < 5 ) a = a + 12; else a = a - 7;
<variant>3
<variant>22
<variant>4
<variant>5
<variant>6
<question>Determine the value of the variable "a" after executing the program fragment: a = 10; if ( a > 5 ) a = a + 12; else a = a - 7;
<variant>22
<variant>3
<variant>45
<variant>5
<variant>6
<question>Determine the value of the variable "a" after executing the program fragment: a = 10; b = 7; if ( a > 5 && a < b ) a = a - 5;
<variant>10
<variant>5
<variant>15
<variant>8
<variant>6
<question>What logical operation should be added to the program instead of an ellipsis so that the value of the variable "a" after executing the program fragment becomes equal to 15? a = 10; b = 5; if ( a < 1 ... a > b ) a = a - 5; else a = a + 5;
<variant>and
<variant>or
<variant>not
<variant>null
<variant>xor
<question>What number will be displayed on the screen as a result of executing the program snippet? i = 6; cout << "9"; while ( i < 5 ) { cout << i; i++; }
<variant>9
<variant>6
<variant>5
<variant>7
<variant>8
<question>What number should be written instead of an ellipsis so that the cycle runs exactly 2 times? i = 4; while ( i >= ... ) { cout << "Привет!n"; i--; }
<variant>2
<variant>1
<variant>3
<variant>4
<variant>5
<question>What will be the value of the integer variable "a" after executing this fragment of the program? a = 2; for ( i=0; i<=4; i++ ) a += i;
<variant>12
<variant>10
<variant>8
<variant>6
<variant>4
<question>What number will be displayed on the screen after executing this fragment of the program? for ( i=2; i>=1; i-- ) cout << i;
<variant>21
<variant>42
<variant>20
<variant>8
<variant>4
<question>Check all the correct statements about arrays in C++
<variant> all array elements must be of the same type
<variant> elements are always numbered from scratch
<variant> elements can be located in memory one at a time
<variant> elements in memory are located next to
<variant> array elements can be of different types
<question>What index does the last element of array “A” have? int A[6];
<variant>5
<variant>6
<variant>7
<variant>0
<variant>8
<question>It is required to fill the array exactly like this: X = [1 3 5 7 9 11] Which operator should be placed in the body of the loop instead of an ellipsis? for ( k=0; k<6; k++ ) { ... }
<variant>X[k] = 2*k + 1
<variant>X[k] = k
<variant>X[k] = 2*k
<variant>X[k] = 2*k - 1
<variant>X[k] = 2*(k + 1)
<question> Why use functions?
<variant>All answers are correct
<variant>Each function puts related code together. This makes it easier for programmers to understand code.
<variant>Functions make programming easier by eliminating code repetition.
<variant>Functions facilitate code reuse.
<variant>You can call the same function to perform a task at different sections of the program or even outside the program.
<question> This class represents an output stream. It’s used for creating files and writing information to files.
<variant> ofstream
<variant>iostream
<variant> fstream
<variant>string
<variant>draw
<question> This class represents an input stream. It’s used for reading information from data files.
<variant> ifstream
<variant>iostream
<variant>ofstream
<variant>string
<variant>draw
<question> Position functions..
<variant> All the answers are correct
<variant> getmaxx()
<variant> getx()
<variant> gety()
<variant> all the answers are wrong
<question> The ability to handle exceptions in C++ throw keywords
<variant> when a program encounters a problem, it throws an exception. The throw keyword helps the program perform the throw.
<variant> a program uses an exception handler to catch an exception.
<variant> the try block identifies the code block for which certain exceptions will be activated.
<variant> You will separate your error handling code from your normal code.
<variant> Functions can handle the exceptions they choose.
<question> The ability to handle exceptions in C++ catch keywords
<variant> a program uses an exception handler to catch an exception.
<variant> when a program encounters a problem, it throws an exception. The throw keyword helps the program perform the throw.
<variant> the try block identifies the code block for which certain exceptions will be activated.
<variant> You will separate your error handling code from your normal code.
<variant> Functions can handle the exceptions they choose.
<question> The ability to handle exceptions in C++ try keywords
<variant> the try block identifies the code block for which certain exceptions will be activated.
<variant> when a program encounters a problem, it throws an exception. The throw keyword helps the program perform the throw.
<variant> a program uses an exception handler to catch an exception.
<variant> You will separate your error handling code from your normal code.
<variant> Functions can handle the exceptions they choose.
<question> What is Char?
<variant> Char is a C++ data type designed for the storage of letters.
<variant> Exception handling in C++ provides you with a way of handling unexpected circumstances like runtime errors.
<variant> Graphics in C++ is defined to create a graphic model like creating different shapes and adding colors to it.
<variant> A function in C++ refers to a group of statements that takes input, processes it, and returns an output.
<variant> A string is a sequence of characters.
<question> What is String?
<variant> A string is a sequence of characters.
<variant> Exception handling in C++ provides you with a way of handling unexpected circumstances like runtime errors.
<variant> Graphics in C++ is defined to create a graphic model like creating different shapes and adding colors to it.
<variant> A function in C++ refers to a group of statements that takes input, processes it, and returns an output.
<variant> Char is a C++ data type designed for the storage of letters.
<question> Here is example using the C++ standard….:
#include <iostream>
#include <string>
using namespace std;
int main() {

string name = "Guru99";

cout << "The name is : " << name << endl;

return 0;
}
<variant> string class
<variant> the char variable
<variant> the exception
<variant> the functions
<variant> Graphics
<question> #include <iostream>
using namespace std;
int main() {
char grade = 'B';
cout<< "I scored a: "<<grade;
return 0;
}
Output is?
<variant> I scored a:B
<variant> I scored a:A
<variant> I scored a:C
<variant> I scored a:D
<variant> all the answers are wrong
<question> strcat() strings fanctions syntax is?
<variant> strcat(string1, string2);
<variant> strnlen(string1)
<variant> strcmp(string1, string2);
<variant> strcpy(string1, string2);
<question> strcpy() string fanctions means:
<variant> This is the string copy function. It copies one string into another string.
<variant> This is the string concatenate function. It concatenates strings.
<variant> This is the string length function. It returns the length of the string passed to it as the argument.
<variant> This is the string compare function. It is used for string comparison.
<variant> all the answers are wrong










































     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.