menu
Login
Register
search
Log In
account_circle
Log In
Email or Username
Password
Remember
Log In
Register
I forgot my password
Register
Username
Email
Password
Register
add
Q&A
Questions
Unanswered
Tags
Users
Ask a Question
Articles
Interview Questions
Programming Quiz
Post An Article
Recent Posts
How to fix error 0xc000007b
Python difference between list and array_Kodlogs
Python round to 2 decimal places
error in grid.call.graphics(c_setviewport, vp, true) : non-finite location and/or size for viewport
curses is not supported on this machine (please install/reinstall curses for an optimal experience)
A variable declaration announces the name of a variable that will be used in a program, as well as:
Python find unique values in list
Data Gateways in the Cloud Native Era
Python sort one list by another
Removing element from a list python
Write an expression that whose value is the fifth character of the string name?
0
votes
90
views
Problem:
Can anyone help it was actually asked in exam as following and I need to know whether my answer was right or not?
Write an expression that whose value is the fifth character of the String name?
program
function
asked
Feb 24, 2020
maddi86
●
7
●
5
●
3
5,380 points
answer
Please
log in
or
register
to answer this question.
1
Answer
0
votes
Solution:
The correct answer is: name.charAt(4)
Hope this might help you.
answered
Feb 24, 2020
guudduu
●
8
●
6
●
2
10,530 points
ask related question
comment
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
What is the color of the sky?
To avoid this verification in future, please
log in
or
register
.
Add comment
Cancel
Related questions
0
votes
1
answer
132
views
132
views
Write an expression whose value is the character at index 3 of the str associated with s?
Problem: Write an expression whose value is the str that consists of the third to last character of the str associated with s I tried s[2:] didn't work. Can you please guide me with right solution?
asked
Feb 19, 2020
maddi86
5.4k
points
program
function
0
votes
1
answer
113
views
113
views
Write an expression that evaluates to true if and only if the c-string s equals the c-string "end"?
Solutions: I am new in programming and my logic is not good, can anyone give the right solution? Write an expression that evaluates to true if and only if the C-string s equals the C-string "end"?
asked
Feb 14, 2020
maddi86
5.4k
points
function
program
arrays
java
0
votes
1
answer
189
views
189
views
Write an expression that evaluates to true if the str associated with s starts with "p"?
Problem: I am new in programming and stuck in a query, can anyone guide me? Write an expression that evaluates to True if the str associated with s starts with "p"?
asked
Feb 17, 2020
maddi86
5.4k
points
arrays
function
program
python
0
votes
2
answers
84
views
84
views
Declare an integer constant, months_in_year, whose value is 12?
Problem: I am new in programming, I need help, can anyone help me? Declare an integer constant, MONTHS_IN_YEAR, whose value is 12?
asked
Feb 18, 2020
maddi86
5.4k
points
program
function
0
votes
1
answer
43
views
43
views
Write a method max that has two string parameters and returns the larger of the two.
Problem: Hi there! I am new to the world of programming. My programming teacher gave me an assignment in which I have to write a program in which there would be a function that will take two strings as input from user and will compare the size of both strings ... the larger string of the two. I have no clue how to do that. Please provide me with the sample program with proper description. Thanks
asked
Nov 25, 2020
Code Learner
6k
points
c#
string
parameters
function
program
0
votes
1
answer
3
views
3
views
C: Write a function min that has three c string parameters and returns the smallest.
Problem: I have recently learned about the functions in C++ and I want to write a function that has three string parameters and returns the smallest string of all according to its length. How can I do that? This question might seem nonsense so I apologize for being so dumb. Thanks!
asked
2 days
ago
Code Learner
6k
points
program
c
function
string
parameters
0
votes
2
answers
321
views
321
views
Write the definition of a method max that has three int parameters and returns the largest?
Problem: I am new to programming, so need query to get query to return max number from 3 integer? Write the definition of a method max that has three int parameters and returns the largest? Can anyone guide with correct code?
asked
Feb 17, 2020
maddi86
5.4k
points
parameters
program
function
string
0
votes
1
answer
8
views
8
views
Can you create a method that returns a value of the same type as the class?
Problem: Would the following code be correct? class Person { private: string name; bool sex; int age; public: Person (); bool getSexo (); int getAge (); Person play (string s); }Hope someone could help me out?
asked
Jan 25
sasha
13.2k
points
function
parameters
c#
program
poo
0
votes
1
answer
81
views
81
views
Write a literal representing the false value?
Problems: Can anyone give the right solution? Write a literal representing the false value?
asked
Feb 14, 2020
maddi86
5.4k
points
program
function
0
votes
1
answer
9
views
9
views
C++: Write an expression that continues to bid until the user enters 'n' or 'N'.
Problem: Hi there! I am working with While loop in C++ and I want to write a program that continues to bid unless the user enters ‘n’ or ‘N’. I understand the while loop but unable to make the logic. Please provide me the code with detailed comments. Thank You!
asked
4 days
ago
Code Learner
6k
points
c
program
while-loop