Ignitron_fastfingerz

A vibrant and engaging illustration of various programming languages, including Python, Java, and C, featuring code snippets, a laptop, and a person taking a quiz, in a modern, tech-savvy environment.

Code Mastery Quiz

Test your programming knowledge with our challenging quiz designed for coding enthusiasts and aspiring developers! With 30 expertly crafted questions covering Python, Java, C, and more, this quiz will gauge your understanding of programming concepts, syntax, and best practices.

Participate and discover:

  • A variety of programming languages
  • Logical reasoning opportunities
  • Your strengths and areas for improvement
30 Questions8 MinutesCreated by CodingCompass457
Select the reserved keyword in python
Else
Import
Raise
All of these
a = 8.6 b = 2 print a//b
4.3
4.0
4
Compilation error
A = True b = False c = True if not a or b: print "a" elif not a or not b and c: print "b" elif not a or b or not b and a: print "c" else: print "d"
A
B
C
D
The format function, when applied on a string returns :
List
Bool
Int
Str
Print(chr(ord('b')+1))
B
Syntax error
C
B+1
What is the maximum possible length of an identifier?
32 characters
63 characters
79 characters
None of the above
To open a file c:cppbuzz.txt for writing, we use
Outfile = open(file = “c:cppbuzz.txt”, “o”)
outfile = open(“c:cppbuzz.txt”, “r”)
Outfile = open(“c:cppbuzz.txt“w”)”,
Outfile = open(“c:cppbuzz.txt”, “r”)
Which of the following date format should be used in place of ? Import time str = '02/06/1987' datetime_value = time.strptime(str, ???)
€%d/%m/%Y”
€%d/%M/%y”
€%D/%M/%Y”
€%d/%m/%y”
Which one of the following is not a python's predefined data type?
Class
List
Dictionary
Tuple
What will be the output of 7^10 in python?
13
2
15
None of these

public class CppBuzz {

public static void main(String[] args){

 int a = 10;

 System.out.println(a--*a--);

}

}

100
90
99
72
What do you mean by >>> operator in Java
Left Shift Operator
Right Shift Operator
Zero Fill Right Shift
Zero Fill Left Shift
Select Odd one out from these about local variables
Local variables are declared in methods, constructors, or blocks
Local variables are created when the method, constructor or block is entered
The variable will be destroyed once it exits the method, constructor, or block
We can't create reference variables of Local variables
What is correct sequence of execution of any Java program?
Editing -> Compilation -> Class Loader -> Bytecode Verifier -> Execution
Editing -> Bytecode Verifier -> Compilation -> Class Loader -> Execution
Editing -> Compilation -> Bytecode Verifier -> Class Loader -> Execution
None of the above
On which platforms Java runs?
Windows
Mac OS
UNIX
All of these
The main() method of an application has to be public. Otherwise, it could not be called by a Java interpreter. Is that true?
True
False
Java supports both Primitive & Non-Primitive(User Defined) datatypes. Which one of the following is not a primitive datatype?
Byte
Short
Long
Class

public class CppBuzz {

 

public static void main(String args[]) {

      

       int a =10;

       String b = "10";

     

       System.out.println(a+b);

     

    }

}

10"10"
Compilation Error
20
1010
Java has 5 phases, Editing, Compilation, Loading, Verification & Execution. Which of the following unit is responsible for execution?
Compiler
Class Loader
Byte Code Verifier
Java Virtual Machine
Which of the following operator has more precedence?
()
++
*
>=
Who is father of C Language?
Bjarne Stroustrup
Dennis Ritchie
James A. Gosling
Dr. E.F. Codd
Which of the following is allowed in a C Arithmetic instruction
[]
{}
()
None of these
What is C Tokens?
The smallest individual units of c program
The basic element recognized by the compiler
The largest individual units of program
Both A & B
What is constant?
Constants have fixed values that do not change during the execution of a program
Constants have fixed values that change during the execution of a program
Constants have unknown values that may be change during the execution of a program
None of the above
A binary tree with 27 nodes has _______ null branches
54
27
26
None of the above
The "C" language is
Context free language
Context sensitive language
Regular language
None of the above
The Default Parameter Passing Mechanism is called as
Call by Value
Call by Reference
Call by Address
Call by Name
Recursive functions are executed in a?
First In First Out Order
Load Balancing
Parallel Fashion
Last In First Out Order
The statement print f ("%d", 10 ? 0 ? 5 : 1 : 12); will print?
10
0
12
1
To represent hierarchical relationship between elements, which data structure is suitable?
Priority
Tree
Malloc
Realloc
{"name":"Ignitron_fastfingerz", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your programming knowledge with our challenging quiz designed for coding enthusiasts and aspiring developers! With 30 expertly crafted questions covering Python, Java, C, and more, this quiz will gauge your understanding of programming concepts, syntax, and best practices.Participate and discover:A variety of programming languagesLogical reasoning opportunitiesYour strengths and areas for improvement","img":"https:/images/course8.png"}
Powered by: Quiz Maker