# Tag Archives: Functions

## MySQL | DATABASE() and CURRENT_USER() Functions

DATABASE() Function The DATABASE() Function in MySQL returns the name of the default or current database. The string or name returned by DATABASE() function uses… Read More »

## MySQL | BIN() Function

The BIN() function in MySQL is used to convert a decimal number to its binary equivalent.The BIN() function is equivalent to the CONV() function written… Read More »

## JavaScript | Math.fround( ) Function

While performing operations on numbers we might sometimes want to use 32-bit numbers. JavaScript internally uses 64-bit floating point numbers and not 32-bit. So checking… Read More »

## PHP | Functions

A function is a block of code written in a program to perform some specific task. We can relate functions in programs to employees in… Read More »

## Python-Quizzes | Functions | Question 9

time.time() returns ________ (A) the current time (B) the current time in milliseconds (C) the current time in milliseconds since midnight (D) the current time… Read More »

## Python-Quizzes | Functions | Question 8

Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.pop(1)? (A) [3, 4, 5, 20, 5, 25, 1, 3]… Read More »

## Python | Functions | Question 7

What is the output of the following program : filter_none edit close play_arrow link brightness_4 code import re sentence = ‘horses are fast’ regex =… Read More »

## Python | Functions | Question 6

Which of the following is the use of id() function in python? (A) Id returns the identity of the object (B) Every object doesn’t have… Read More »

## Python | Functions | Question 5

What is called when a function is defined inside a class? (A) Module (B) Class (C) Another Function (D) Method Answer: (D) Explanation: Quiz of… Read More »

## Python | Functions | Question 4

What is the output of the following program : filter_none edit close play_arrow link brightness_4 code y = 8 z = lambda x : x… Read More »

## Python | Functions | Question 3

What is the output of the following segment : chr(ord(‘A’)) (A) A (B) B (C) a (D) Error Answer: (A) Explanation: ord() function converts a… Read More »

## Python | Functions | Question 2

What is the output of the following code : filter_none edit close play_arrow link brightness_4 code L = [‘a’,’b’,’c’,’d’] print “”.join(L) chevron_right filter_none (A) Error… Read More »

## Python | Functions | Question 1

What will be the output of the following code : filter_none edit close play_arrow link brightness_4 code print type(type(int)) chevron_right filter_none (A) type ‘int’ (B)… Read More »

## Java | Functions | Question 11

Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test {     public static void main(String[] args)     {         String str… Read More »

## Java | Functions | Question 10

Predict the output of the following program. filter_none edit close play_arrow link brightness_4 code class Test implements Cloneable {     int a;        Test cloning()     {… Read More »