NEW
Font size
WorksheetsTechnoFuzzle
Total questions: 20
Worksheet time: 12mins
What the command chmod 755 file.txt does not do in a Unix-like operating system?
Grant full permissions to everyone
Grant execute permissions to the group
Grant read, write, and execute permissions to the owner
Grant read and write permissions to the owner
How many times does "Infinity 2k24" gets printed?
11 Times
10 Times
0 Times
Infinite Times
Guess the output
4
Invalid type
Any Valid output
2
Trace the output
0 0 0 0
4 3 2 1
1 2 3 4
Error
Which of the followings is correct for a function definition along with storage-class specifier in C language?
int fun(register int arg)
int fun(extern int arg)
int fun(static int arg)
int fun(auto int arg)
Guess the output
{0: 0, 1: 1, 2: 4, 3: 9, 4: 16, 5: 25}
Syntax Error
{1: 1, 2: 4, 3: 9, 4: 16, 5: 25,6:36}
Dictionary comprehension doesn’t exist
Which of the following traversal outputs the data in sorted order in a BST?
Preorder
Inorder
Postorder
Level Order
getc() returns EOF when
getc() returns EOF when
End of files is reached
None of the above
Both of the above
The output is
20,4,4
20,2,2
4,12,12
16,12,12
If a function is friend of a class, which one of the following is wrong?
A function can only be declared a friend by a class itself.
Friend functions are not members of a class, they are associated with it.
Friend functions are members of a class.
It can have access to all members of the class, even private ones.
Predict the height of the BST in the order: 10, 1, 3, 5, 15, 12, 16.(height-maximum distance of a leaf from the root)
2
3
4
6
Which one of the following is an application of Queue Data Structure?
Load Balancing
When data is transferred asynchronously
When a resource is shared among multiple consumers.
All the above
Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?
Insertion Sort
Merge Sort
Quick Sort
Heap Sort
Find the Output?
1105110
11511
27
115110
Trace the result
Java Programming
JavaProgramming
Compile time Error
Java
What is a dangling pointer?
Pointer with null value
A type of pointer in C
A pointer pointing to an freed memory
A pointer pointing to a valid memory location
Determine the output?
20
8400
8404
10
How do you open a file in both read and write modes?
fstream file(“data.txt”, ios::readwrite);
fstream file(“data.txt”, ios::in | ios::out);
fstream file(“data.txt”, ios::both);
fstream file(“data.txt”, ios::read | ios::write);
Guess the output?
Result:F
Result:o
Error
Garbage value
Write a command to remove the firstnumber on all lines that start with "@"?
Mention only the command without filename
sed '//@[0-9]//'
sed 's//[0-9]//'
sed 's/@[0-9]//'
sed 's/[0-9]//'
