programming languages Online Quiz - 128
Description: programming languages Online Quiz - 128 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Which of the following statements are true?
Which of the following will output -4.0
String s=new String("Bicycle"); int iBegin=1; char iEnd=3; System.out.println(s.substring(iBegin,iEnd));
What is the result of the following operation? System.out.println(4 | 3);
Given the following declarations String s1=new String("Hello") String s2=new String("there"); String s3=new String(); Which of the following are legal operations?
What gets printed when the following code is compiled and run. Select the one correct answer. public class test { public static void main(String args[]) { int i = 1; do { i--; } while (i > 2); System.out.println(i); } }
How are this() and super() used with constructors?
Identify the steps to integrate validator framework in struts? a)Copy validation.xml and validation rules.xml to web-inf directory b)Add errors in resource bundle c)Include validation plug-ins in struts- config.xml d)Add validation plug-ins in web.xml and struts-config.xml e)Add validation plug ins in web.xml f)Include the required form in tag in validation.xml g)include required fields in tag in validation.xml
We can have more than one validation.xml in an application?
Which one we prefer in validating dynamic row functionality of our application?
How you will display validation fail errors on jsp page?
We can create our our own custom validations in Struts Validator framework?
Which of the following will give the output as 3?
(define myList (list 1 2 3 4 5 6 7 8 9)) (- (+ (list-ref mylist 2) (cadr mylist)) (list-ref (cddr mylist) 2)) Output of the above code will be:
Which of the following codes will NOT give an error? (i) (display '(1 2 3)) (ii) (display (* (exp 5 2) 2)) (iii) (display (* (expt 5 2) 2)) (iv) (display (+ 5 (display (* 4 2))))
6.What is output of following: ((lambda x x) 1 2 3)
3.What is output of following? (define a 97) (integer->char (exact->inexact a))
(modulo -15 4) the output will be:
(define list1 (list 1 2 3)) (define list2 (list 4 5 6)) (define list3 (list)) (append list3 list1 list2) what will be the output if we display list3?